Where cpanel stores the list of domains/subdomins/add-on domains?
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.
-
Hello :) You will likely want to utilize some of the information stored in the account's userdata directory: /var/cpanel/userdata/$username/main /var/cpanel/userdata/$username/$domain
Thank you.0
Please sign in to leave a comment.
Comments
1 comment