ispCP - Board - Support
change my hostname - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Migration (/forum-35.html)
+--- Thread: change my hostname (/thread-6400.html)



change my hostname - yohann - 04-15-2009 01:06 AM

hi
i'm finishing a migration from VHCS on a old server to ispcp stable on a new one,
i' won't say everything is working, but i'm doing my way trought porblems one by one.
but know i'm stuck on this one.
i did a mistake when i choosed the FQDN, it was not a domain i registered, so i need to change this domain name in a domain name i have registred.

i change the domain name in so that
hostname and hostname -f give the right name, but i don't know how to make the change apply to ispcp.

please don't tell me i need to reinstall ispcp from scratch as i already spend on full week in search and configuration

best regards
yohann


RE: change my hostname - Illidan - 04-15-2009 01:45 AM

Okay, i did this a last day too I hope that was all what you must change but I dont really know:

/etc/hostname <-- hostname
/etc/hosts <-- IP table + hostnames

then

# cp /etc/hostname /etc/mailname

Now you must open /etc/ispcp/ispcp.conf. There you must change the server_name and base_server_vhost.

Now, you can open phpmyadmin and log in as root.

Open the table server_ips. Change here the server name.

Then open /etc/postfix/main.cf

Change here myhostname and mydomain.

Now restart postfix and hostname.sh.

Hope that was all!


RE: change my hostname - yohann - 04-15-2009 02:02 AM

thank you very much it worked well