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!

Separate Accounts for Subdomains?

Discussion in 'General Discussion' started by jmcg232, Jun 10, 2016.

  1. jmcg232

    jmcg232 Registered

    Joined:
    Jun 10, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Illinois
    cPanel Access Level:
    Root Administrator
    I need to set up a couple of dev/test servers for freelancers to use. We just switched to WHM/CPanel and I'm a bit confused to say the least about basic Account setup/management. My hosting company said to create a seperate account for each subdomain but not sure that's the most organized way to do things?
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    For security purposes it is the best way to do it. You would just create a separate cPanel account for each subdomain.

    This stops cross site attacks since having each domain within a single cPanel account means all files are owned by the same linux user which makes it super easy for an attacker to infect other sites within that same account.

    Its also good if you want to limit a developer from being able to access other sites within the same cPanel account.

    You will need to enable an option in WHM though.. WHM > Tweak Settings > Allow WHM users to create subdomains across accounts

    If the domain is the same domain used for your server hostname then you also need to enable > Allow resellers to create accounts with subdomains of the server’s hostname.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jmcg232

    jmcg232 Registered

    Joined:
    Jun 10, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Illinois
    cPanel Access Level:
    Root Administrator
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You will likely find it's more organized and secure to create a separate account for each subdomain if each subdomain uses it's own separate website or application, as mentioned in the previous post. You can authenticate in cPanel with the root password to see the "Switch Account" feature at the top of the cPanel interface, allowing you to easily switch between accounts.

    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