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!

How to list/find addon domains & subdomains in whm on Linux?

Discussion in 'General Discussion' started by postcd, May 31, 2015.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    68
    What is the file or folder where are listed addon domains and main domains on WHM server?
    I need to use it for my linux script. Thank you

    in WHM / Account information / List subdomains
    Also lists it

    But for linux file, when i searched one parked domain, i found:/etc/httpd/conf/httpd.conf

    this appears to list subdomains (without http, http www)
    cat /etc/httpd/conf/httpd.conf | grep "ServerName" | tr -d "ServerName" | tr -d " "

    But im unsure how to filter out domains from already suspended cpanels..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 may find these files helpful:

    /etc/userdomains
    /etc/userdatadomains

    Also, you can see a list of suspended accounts in the following directory:

    /var/cpanel/suspended/

    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