How to change the hostname of the server?

Following are the steps to change the hostname via ssh:

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

hostname servername.yourdomain.com

  1. Run the following command to update the cPanel license information on the new host name to avoid invalid cPanel license error:

/usr/local/cpanel/cpkeyclt

Share on Twitter
Share on Facebook

BLACK

FRIDAY

DEALS

UP TO 60% OFF
Friday November 27th starts at 9am EST.
While supplies last!