Skip to main content

cPanel account as subfolder of another cPanel account

Comments

9 comments

  • cPanelLauren
    Hi @StefT What you're requesting isn't possible for a couple of reasons but namely, because you can't have two separate cPanel users per account. You can most certainly create an addon domain or subdomain in a subfolder of the primary domain but this domain will not use a separate account. I'm curious for more details about why you want this configuration, maybe we can help you come up with a workable and more secure solution. Thanks!
    0
  • StefT
    Hi - thanks for your reply. I'd guessed as much as couldn't find a solution myself. My thinking was that if each install (ecommerce platform, and also Wordpress for editorial) were kept within separate accounts, (with different users, passwords, keys etc) then it would increase security and resilience. For example, if somehow, someone gained access to one part (eg, the ecommerce platform) then they wouldn't automatically gain access to the other part and vice-vera. Also if one part were to go down/offline for whatever reason, then the other part wouldn't be affected. It would have some built in resilience. If I were to give a 3rd party developer SSH access, I would want to keep their access contained to the specific area. Currently I have ecommerce solution installed in public_html and have a folder within there sym-linked to my Wordpress installed (in a folder in the top-level home folder. Does that make sense? that gives me my directory structure: e-commerce: mydomian.com wordpress: mydomian.com/wordpress With a bit of CSS the user won't be able to visibly see the difference between the two. Just wondering that there must be a better way.... maybe not though?
    0
  • cPanelLauren
    What you want as far as separation is definitely doable and youou could create them in different accounts like domain.tld - account1 shop.domain.tld - account2 They don't actually have to be in the same account nor do they even need to share the directory structure. this would keep them completely separate but when folks click to head over to the ecommerce portion they'd be rerouted to the shop.domain.tld site and vice versa. This would keep them separate but you just wouldn't have the subdirectory you're asking for, really that would be a security risk in of itself.
    0
  • StefT
    hey there - thanks for your reply, I understand the rational. Initially we we were going to use sub-domains as you suggest. However it's kind of out of my control as the preference from those around me is that the ecommerce section be up front and the rest of the site lie afterwards like 'shopdomain.tld/editorial' (no visible subdomain) How about if the editorial was setup in a subdomain (as you suggest), but could it be redirected / proxied somehow with cPanel to appear not as a subdomain but following the desired url structure (i.e. shopdomain.tld/editorial)? Can that be done using cPanel? Thanks again
    0
  • cPanelLauren
    That wouldn't work, you could redirect the subdomain to that folder but it would defeat the purpose of separating them out as the content for both would be contained in the same account. So you can do what you want but not have separate accounts, you can limit access for dev's using FTP to specific folders as well, if you choose this path. If you want to separate them you'd need separate domain names, hence the subdomains.
    0
  • StefT
    Thanks again. Okay, I think I understand everything I need to - thanks for making it clear. So it's either:- I use a folder structure (everything in one cPanel account) OR I use a subdomain (and could use separate cPanel accounts). I'm going to push for the subdomain option. Cheers Stef
    0
  • cPanelLauren
    You got it exactly!! Let us know if we can help any further along the way as well. Thanks!
    0
  • Jasimp
    Hi Even this post little bit older i was looking for a same solution and i created a subdomain for this purpose and created a new cPanel account used this subdomain Main cPanel account : maindomain.com Additional cPanel account : subdomain.maindomain.com WHM also in this same VPS sharing the same public IP ( But different FQDN) so the DNS server also on this IP Everything went well but i am facing few issues 1. The new cPanel account with new subdomain (add on domain) DNS s not resolving on some ISP s and some countries also. 2. The SSL certificate is not auto renewing for the domain in this cPanel account Can you please guide me how to solve this issue Or is there any proper steps to follow? Thanks
    0
  • cPRex Jurassic Moderator
    @Jasimp - you'll want to check the DNS with a tool like intodns.com to ensure the domain is working properly. It won't check subdomains, but it will let you see if the main domain is experiencing any issues. Until the DNS is working, the SSL will also not be issued.
    0

Please sign in to leave a comment.