Press "Enter" to skip to content

cPanel previous attempt to change the hostname is still running

Such error message may received in WHM change hostname feature due to a failure of the previous operation without deleting the lock file.
All you need to do is delete the lock file:

rm -f /var/cpanel/.application-locks/UpdateHostname

Now setup a valid DNS hostname!

/usr/local/cpanel/bin/set_hostname [yourhostname]

Run some tests:
Centos 6:

hostname
/scripts/check_valid_server_hostname

Centos 7:

hostnamectl
/scripts/check_valid_server_hostname

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *