The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not seeing accounts in WHM

Discussion in 'General Discussion' started by twinfinity, Jan 23, 2011.

  1. twinfinity

    twinfinity Member

    Joined:
    Jan 3, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I cleared out the cpbackup/daily dir and now accounts are not listed in root WHM. Websites work and are usable. The DNS zones for accounts show. But I am not sure if there is cPanel access as there are no accounts listed.

    I need to regenerate the cPanel accounts somehow in WHM for the accounts.

    Any ideas ?

    Thanks.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    When you state there are no accounts now listed in root WHM, where precisely in WHM? Do you mean in WHM > List Accounts area or somewhere else?

    Also, what precise command did you run on the machine when you cleared out cpbackup/daily dir? That directory wouldn't impact users showing up. If you could paste the return from the following commands:

    Code:
    ls -lah /var/cpanel/users/
    ls -lah /var/cpanel/userdata/
    Also, what is one of the domains on the machine? Could you run this command to check the return for that domain?

    Code:
    /scripts/whoowns domain.com
    Replacing domain.com with the domain name in question. There are a few reasons you might not see accounts listed in WHM > List Accounts area:

    1) The domain or user is missing in /var/cpanel/userdata/username location (where username is the cPanel username). The userdata files build /usr/local/apache/conf/httpd.conf file (the Apache configuration file).
    2) The domain or user is missing in /usr/local/apache/conf/httpd.conf file itself.
    3) The domain or user is missing in /var/cpanel/users/username location (where username is the cPanel username).
    4) The domain or user is missing in one of these files:
    /etc/trueuserdomains
    /etc/userdomains
    /etc/domainusers

    You can tell if the domain is missing in part 4 (the /etc files) by running /scripts/whoowns domain.com above. If the domain or user is missing in the /etc/ files indicated in part 4, then you could move those files and run /scripts/updateuserdomains to re-populate the files:

    Code:
    mv /etc/trueuserdomains /etc/trueuserdomains.bak
    mv /etc/userdomains /etc/userdomains.bak
    mv /etc/domainusers /etc/domainusers.bak
    /scripts/updateuserdomains
     
  3. twinfinity

    twinfinity Member

    Joined:
    Jan 3, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    The last codes on your post did the trick.

    Many many thanks !!
     
Loading...

Share This Page