3 steps for change hostname with cPanel
Follow these 3 steps:
1. Type “hostname HOSTNAMEHERE”
2. Type “vi /etc/hosts” and edit your hostname there
3. Type “vi /etc/sysconfig/network” and edit your hostname there as well. If you do reboot the server the hostname goes back to the one originally set if you do not follow these 3 steps.
after that you will get Invalid License File problem, you can resolve it by following with this command :
/usr/local/cpanel/cpkeyclt