HOW TO: Change the hostname and not get cpanels licence error
it is anoying when you update the hostname on a server running cpanel and cpanel gives you an invalid licence error, if you want to change the hostname on a cpanel server then
1)log into shell with root
2)type "hostname (then at the end put anything you want as your hostname, but it must be something.yourdomain.xxx please be aware that the something will show as the server name in cpanel
3)type /usr/local/cpanel/cpkeyclt
then just load cpanel as you would normaly, but dont forget to add an a entry for the new hostname