Symptoms
When attempting to access Webmail, the page redirects to the login page. Errors similar to the following will be seen in /usr/local/cpanel/logs/login_log
.
"POST /login/?login_only=1 HTTP/1.1" FAILED LOGIN webmaild: user password
hash is missing from system (user probably does not exist)
Errors similar to the following may also be seen in /usr/local/cpanel/logs/error_log
.
Cpanel::Exception::DomainDoesNotExist/(XID pje7hu) The domain “domain.com”
does not exist. at /usr/local/cpanel/Cpanel/AcctUtils/Lookup.pm line 63.
Description
If the server's hostname uses the same domain as a domain hosted on a cPanel account, it will cause account domain lookup failures. The cPanel software doesn't support setting the same hostname as a domain hosted on an account.
Workaround
- Log into WHM as the 'root' user.
- Change the server's hostname.
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command.
/scripts/updateuserdomains