PDA

View Full Version : How-To Change the Hostname on your Plesk server


rmcompsol
06-10-2005, 01:59 PM
1)Add the following line to /etc/hosts file, when <ip.address.of.your.server> is real IP address:
<ip.address.of.your.server> plesk.yourdomain.com plesk

2)Change the following variable in the /etc/sysconfig/network file
HOSTNAME=plesk.yourdomain.com

3)Change the following variables in the /usr/local/psa/admin/conf/httpsd.custom.include file:
ServerName www.yourdomain.com
ErrorDocument 400 https://www.yourdomain.com:8443

4)Run the command below to specify a new hostname of the server:
hostname plesk.yourdomain.com

5)Restart network service & psa service
/etc/init.d/network restart
/etc/init.d/psa restart
/etc/init.d/psa restart (Make sure to restart psa twice!)

shunter045
04-12-2006, 01:54 PM
Wait.. does this make it so you can access plesk via http://plesk.yourdomain.com or have i misunderstood completely?

eWebtricity
04-12-2006, 02:20 PM
Yes we access our servers with custom hostnames that we can remember/recognize all the time with a similar configuration. Makes life managing many servers much easier.

shunter045
04-12-2006, 02:39 PM
Okay, I'll have to give this a try out later today.

shunter045
04-19-2006, 03:20 PM
on my plesk 7.5.4 with fedora core 2 this file doesn't appear to exist:

/usr/local/psa/admin/conf/httpsd.custom.include