Answered by the Webhosting Experts

Change Hostname in cPanel Web Host

For web host using cPanel as server’s control panel, changing hostname of the server supposedly to be an easy task. WebHost Manager (WHM) component of cPanel has a tool which allows webmaster to easily change host name. However, using this WHM web-based GUI tool to change hostname always has side effects or problems, such as failed to change the hostname, hostname reverted to original host name after reboot, or invalid cPanel license file error.

cPanel 11 WHM will most likely solve all these errors, however, if you still facing problem, try the following steps to change hostname properly:

  1. Login to server via SSH as root.
  2. Run the following command to change host name:hostname servername.domain.com

    Change servername.domain.com to a hostname you desired based on your domain name.

  3. Run the following command to update cPanel license information to avoid invalid cPanel license error:/usr/local/cpanel/cpkeyclt

 

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.