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.

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 Member

    Joined:
    Sep 9, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page