How to Retrieve the Full List of Domains, Addon Domains, and Subdomains?
Is there a way to pull the full list of domains, including addon domains and subdomains, on a cPanel server? I guess I could do it with an API but if there's an easier way, let me know.
-
The absolute easiest way is /etc/userdatadomains
which contains domains, including which type it is, their owner, the document root and php version if it's set.0 -
/etc/userdomains should get you similar output with just the username as well but, I'd defer to the suggestion by @LucasRolff 0
Please sign in to leave a comment.
Comments
2 comments