Troubleshotting: Fixing disapeared users from WHM listings

From CPWiki

Jump to: navigation, search

Contents

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:


cPanel doesn't know user

Symptoms

* There aren't account neither in "List Accounts" neither in "Show Reseller Accounts"

Resolutions

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.

Checking httpd.conf

Check your httpd.conf and make sure there are a VirtualHost for that domain. If not, add it.

Checking /etc/userdomains

There should be a line width "domain.com: user". If not, add it manually.

User doesn't appear on reseller

Symptoms

* On WHM reseller "List Accounts" domain do not appear.

Resolution

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.


External links

http://forums.cpanel.net/showthread.php?t=48765

http://forums.cpanel.net/showthread.php?t=48943

http://forums.cpanel.net/showthread.php?t=47888

Personal tools