Hi Lee,
The server host name can be changed from both WHM and through SSH. But WHM often gives error while changing the host name. If you try to change the host name through WHM, you may get errors like failed to change the host name, host name reverted to original host name after reboot, or invalid cPanel license file error. It's always good to update the host name from SSH.
Follow the below steps to change the host name.
1. Login to server via SSH as root.
2. Run the following command to change host name:
Quote:
|
hostname servername.yourdomain.com
|
3. Run the following command to update the cPanel license information on the new host name to avoid invalid cPanel license error:
Quote:
|
/usr/local/cpanel/cpkeyclt
|