If you have a domain that you know is on a server, but for some reason, when you click on List Accounts in the WHM, it does not show up, check the following locations to make sure the domain exists in them all.
- /var/cpanel/users/USERNAME (replace USERNAME with their cpanel username)
- /etc/httpd/conf/httpd.conf or /etc/apache/conf/httpd.conf
In /etc/trueuserdomains it should contain a line that has the domain name and username in this format
The file has a list of only main domains, no addons, parked, or subdomains (unless the subdomain was created with it’s own cpanel account).
In /etc/userdomains, it also should contain the missing domain name and username, and it should be in the same format
This file will also contain sub domains, but for the purposes of this fix, you need to make sure that the main domain is in it.
In /var/cpanel/users/USERNAME there are going to be many entries. there are 4 lines that need to be in place however.
- OWNER=root (or if it’s a resold account, the reseller username)
Make sure that each of the 4 lines above has the correct information.
Lastly, make sure there is a virtual host in the httpd.conf file. This can be found in /etc/httpd/conf/httpd.conf or /usr/local/apache/conf/httpd.conf. You can also simply try rebuilding the apache config by running /scripts/rebuildhttpdconf
Once you have checked all the above, run /scripts/updateuserdomains Once this has completed, you should now be able to find your site in the List Accounts section of the WHM.