Tuesday, November 11, 2014

cPanel’s Manually Updated Hostname Alert

If you have recently updated your cPanel servers to 11.46, you may have received something that looks like the following alert.
WHM has detected a manual hostname change.
To fix this problem, we recommend that you perform the following action:
Update your hostname in WHM’s (http://new.hostname.com:2087/scripts2/changehostname) interface (Home » Networking Setup » Change Hostname).

If you did, then that means that your hostname was updated outside of WHM after cPanel was installed on that server. The fix is simple.

If your server is a WHM webserver, you need only navigate to WHM >> Change Hostname
WHM Change Hostname
WHM Change Hostname
Once that’s done, you can test that your server will no longer send an alert by running the hostname validation script manually:
/usr/local/cpanel/scripts/check_valid_server_hostname
———-
If your server is running cPanel’s DNSOnly version of WHM, you have to manually change the cPanel-configured hostname by editing the HOST definition in /etc/wwwacct.conf:
-bash-4.1# hostname
new.hostname.com
-bash-4.1# grep HOST /etc/wwwacct.conf
HOST old.hostname.com
-bash-4.1#

Once that’s done, you can test that your server will no longer send an alert by running the hostname validation script manually:
/usr/local/cpanel/scripts/check_valid_server_hostname

No comments:

Post a Comment