How to change the hostname of the server?
Following are the steps to change the hostname via ssh:
- Login to server via SSH as root
- Run the following command to change host name:
- Run the following command to update the cPanel license information on the new host name to avoid invalid cPanel license error: