Troubleshooting: Fixing disapeared users from WHM listings
From CPWiki
Contents |
[edit] Introduction
Sometimes a user/domain/account can disappear from cPanel WHM listings like "List Accounts", "Reseller Center" => "View Usage/Stats and Manage (suspend,terminate,etc)" links but they do exists on apache and /home.
A way to reproduce this bug is just remove a DNS Zone: it'll disappear.
To make them work again there are few things you can do:
[edit] cPanel doesn't know user
[edit] Symptoms
* There aren't account neither in "List Accounts" neither in "Show Reseller Accounts"
[edit] Resolutions
[edit] Checking /var/cpanel/users/
* Check on /var/cpanel/users/username. It should have a "DNS=domain.com" line. If not it'll have a "XDNS1=domain.com" like line. Just edit this file and change the line to DNS=domain.com * Check too if DNS Zone do exists. If not, do add it by WHM
Wait a few minutes (about 10) and check on cPanel if it worked. If not, go ahead on next try.
Better: Run /scripts/updateuserdomains the user appears at the moment in the WHM
[edit] Checking httpd.conf
Check your /etc/httpd/conf/httpd.conf and make sure there are a VirtualHost for that domain. If not, add it.
[edit] Checking /etc/userdomains
There should be a line width "domain.com: user". If not, add it manually. Here 'user' is the reseller
[edit] Checking /etc/trueuserdomains
There should be a line width "domain.com: user". If not, add it manually. Here 'user' domain owner user.
[edit] User doesn't appear on reseller
[edit] Symptoms
* On WHM reseller "List Accounts" domain do not appear.
[edit] Resolution
[edit] Checking /etc/trueuserowners
Check if there are a record: user:owner on /etc/trueuserowners. If not, you can add it or run a script to fix it:
mv /etc/trueuserowners /etc/trueuserowners1 /scripts/updateuserdomains /scripts/updateuserdomains
Run as it is: last line should be wrote twice.
[edit] External links
http://forums.cpanel.net/showthread.php?t=48765

