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:
- Login to server via SSH as root.
- 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.
- Run the following command to update cPanel license information to avoid invalid cPanel license error:
/usr/local/cpanel/cpkeyclt
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- cPanel Invalid License File After Changing Hostname Error
- Certificate for cPanel, Courier-Imapd/Pop3d or Exim Will Expire in Less Than 30 Days Error
- Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start
- How to Add IP Addresses to Server with cPanel WebHost Manager (WHM)
- HostDime Web Hosting Service Reviews
- Restore Full Backup or cpmove File in cPanel Web Host
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page
- cPanel Unable or Cannot Start or Restart POP3 Mail Service
- cPanel Perl Module PNGgraph Could Not Be Installed Error
- Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank
































