Change a cpanel server hostname

pico /etc/sysconfig/network

pico /etc/hosts

pico /etc/resolv.conf

pico /var/named/ (add A record for host)

pico /usr/local/apache/conf/httpd.conf (may not exist anymore)

cd /usr/local/cpanel
then run

also might help license


You can also run: pico /etc/sysconfig/network and change it there.
Then run: hostname
Then reboot the server.

If you have a VPS than you might need to contact the VPS provider to change it from the VPS control center.