How to 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


Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

cpanel change hostname - cpanel change domain - whm change hostname - change main domain in cpanel - change Main Domain cpanel - cpanel change main domain - change cpanel hostname - whm change domain name - whm change server name - change hostname whm - cpanel Host name - change domain cpanel - changing hostname WHM - whm Hostname - change hostname cpanel - cpanel main domain - change domain on cpanel - how set dns name cpanel - CPANEL HOST NAME IPHONE - cpanel change main ip - cpanel nameserver change - whm Modify Hostname - cpanel change ip and hostname - restore cpanel mail.domain.com - change cpanel main domain - change host in cpanel - change hostname ssh - how to change name servers cpanel - cpanel change "main domain" - how to change name server through cpanel - apache 2 change hostname - change domain name WHM - change hostname in cpanel - cpanel how to change ip account ssh - how to change the default domain in cPnael - whm hostname gets reset - changing the main domain of my cpanel - how to change the mail servers in whm - whm dnsonly change hostname - changing main domain ssh - change nameserver on cpanel wordpress - cpanel changue hostname - cpanel change hostname - how to change servername when using cpanel - how to change server name when using whm gui - how to change my server name by cpanel - change domain names to www whm - cpanel change "Server Name" - cpanel local_hostname - cpanel modify exim hostname -