Skip to main content

Configure cPanel for non webhosting company

Comments

6 comments

  • cPanelMichael
    Hello Jeff,
    is there an easy way to add/spin off multiple subdomain sites under a single user.

    Setting up a single cPanel account, and then adding each separate website as an Addon Domain name to that account, is the best approach if you want to provide a developer with access to all of the websites without requiring the developer to login as a different username for each new FTP or SSH session. The Addon Domains feature is documented at: Addon Domains - Documentation - cPanel Documentation Could you let us know of the issues you faced when initially attempting this type of setup?
    is there a way to 'by configuration' or 'by hand' ensure that websites are created under a known mount point /foobar rather than as subdirs under a user.

    This isn't supported due to the potential security risks and due to how Apache/PHP interact with directories not owned by the account username. Thank you.
    0
  • jeff brown
    The Addon Domains feature is documented at:
    0
  • cPanelMichael
    Ok, and I totally understand why a real hosting company and/or hosting re-seller would need to be careful with this. However, as I mentioned initially, we're not hosting per/se, and it's an internal server where only developers have access, so there really should be no security risk, and we can ensure that '/foobar' is owned by the appropriate user. Is there a non supported way we can tweak this? or are we going to have to build symbolic links all over the place?

    Here's a thread where a user configured something like this: Share Directory Across Multiple Accounts However, my advice would be to go with the Addon Domain option because using an unsupported method of setting up the accounts could result in other features not working as expected (e.g. Mod Security, PHP-FPM). Thank you.
    0
  • jeff brown
    I'll take a look, but I noticed (on a re-read):
    However, my advice would be to go with the Addon Domain option

    Sorry what we need are sub-domains not domains, they're all on the same domain. Does that change any of your earlier answers? I found a subdomain link from your first one and that seems to be going smoothly.
    0
  • cPanelMichael
    Sorry what we need are sub-domains not domains, they're all on the same domain. Does that change any of your earlier answers? I found a subdomain link from your first one and that seems to be going smoothly.

    Hello, Using either subdomains or addon domain names would achieve the functionality you are seeking. Thank you.
    0
  • jeff brown
    Excellent, Thanks to you cPanelMichael for your links and advise. I would mark this as resolved but I can't find a control for it. To be clear for any future forum browsing: To resolve #1: We chose to use a symbolic link from our mount point to replace the ~//public_html, then applying a chown to ensure user/group ownership was correct. Note that as Michael mentioned, while this works for us in our use case, it probably isn't a correct solution for many situations. To resolve #2: For the process of making a new subdomain site, we used the Subdomain link, and the entire process including manually uploading and unzipping files, creating a db/db-user and restoring the db clocks in around 30 minutes. Which is fine for our needs.
    0

Please sign in to leave a comment.