Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Where cpanel stores the list of domains/subdomins/add-on domains?

Discussion in 'General Discussion' started by Augusto Will, Jan 27, 2015.

  1. Augusto Will

    Augusto Will Active Member

    Joined:
    Sep 9, 2011
    Messages:
    43
    Likes Received:
    4
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    I need to create a script to rebuid some configurations of clients.
    Where is the better file to read to get user webroot, username and domains/subdomains, add-on domains etc.?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You will likely want to utilize some of the information stored in the account's userdata directory:

    Code:
    /var/cpanel/userdata/$username/main
    /var/cpanel/userdata/$username/$domain
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice