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.

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:
    275
    Likes Received:
    31
    Trophy Points:
    28
    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.
     
  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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
Loading...

Share This Page