Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    3

    Default cpanel accounts accessing document root of another account?

    Hello,

    I have wiredtree.com vps that runs
    WHM 11.26.20
    CENTOS 5.5 i686 virtuozzo on host

    I am building a site builder product.

    so I have MYDOMAIN.com that has the program to create sites.

    Lets say I get a customer CUSTOMER.COM, I want to be able to create a cpanel account that allows them to manage their email accounts and put a limit on their bandwidth use, thats it (this is easy enough to control)... But my question is it possible to have CUSTOMER.com point to the document root of MYDOMAIN.com?

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by myjquerylife View Post
    Hello,

    I have wiredtree.com vps that runs
    WHM 11.26.20
    CENTOS 5.5 i686 virtuozzo on host

    I am building a site builder product.

    so I have MYDOMAIN.com that has the program to create sites.

    Lets say I get a customer CUSTOMER.COM, I want to be able to create a cpanel account that allows them to manage their email accounts and put a limit on their bandwidth use, thats it (this is easy enough to control)... But my question is it possible to have CUSTOMER.com point to the document root of MYDOMAIN.com?
    If the client domain "customer.tld" will be on the same cPanel account as your primary domain "mydomain.tld" then it is possible to easily setup both using the same document root. By default, parked domains will use the same document root as the primary domain of an account. When adding the client domain, I would consider using parked domains via cPanel.

    Reference menu path and documentation: cPanel: Main >> Domains >> Parked Domains

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    3

    Default

    Is their a way to achieve what I am after that allows me to limit bandwith use?

    From here:
    Parked Domains

    It looks like parked domains don't have separate stats. Also I would prefer they have their own cpanel account that way if they send spam or something and the hosting provider killed the offending account it would be their cpanel account not my account.

    Any ideas?

    i want customer.tld to have a separate cpanel from mysite.tld (main account), but have its document root be mysite.tld's

    I of course won't give customer.tld ftp, mysql, I won't give them access to the cpanel its self, I will through my own admin and the cpanel API give them access to add/edit/delete email address's and that it.

    I just need to isolate each customer for bandwidth monitoring and incase they do something inappropriate that causes an account to get suspended it only effects them.

    Any ideas? maybe separate cpanels is not the answer, I am new to all of this...
    Last edited by myjquerylife; 10-18-2010 at 10:03 PM.

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by myjquerylife View Post
    Is their a way to achieve what I am after that allows me to limit bandwith use?

    From here:
    Parked Domains

    It looks like parked domains don't have separate stats. Also I would prefer they have their own cpanel account that way if they send spam or something and the hosting provider killed the offending account it would be their cpanel account not my account.

    Any ideas?

    i want customer.tld to have a separate cpanel from mysite.tld (main account), but have its document root be mysite.tld's

    I of course won't give customer.tld ftp, mysql, I won't give them access to the cpanel its self, I will through my own admin and the cpanel API give them access to add/edit/delete email address's and that it.

    I just need to isolate each customer for bandwidth monitoring and incase they do something inappropriate that causes an account to get suspended it only effects them.

    Any ideas? maybe separate cpanels is not the answer, I am new to all of this...
    I am not aware of a safe way to have different accounts use the same document root. Have you considered duplicating the site builder installation on each account?

  5. #5
    Registered User
    Join Date
    Oct 2010
    Posts
    3

    Default

    I have considered duplicating, but then it would require hosting multiple copies of the same files...

    not to mention upgrading the custom site-builder on each account... I am looking for a SaaS, where I push the updates to the server and all is well.

    so you mention that you are not sure of "a safe way to have different accounts use the same document root"

    What is the unsafe way? Also if the client does not receive their cpanel username/password why would it be unsafe?

    Thanks

  6. #6
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by myjquerylife View Post
    I have considered duplicating, but then it would require hosting multiple copies of the same files...

    not to mention upgrading the custom site-builder on each account... I am looking for a SaaS, where I push the updates to the server and all is well.

    so you mention that you are not sure of "a safe way to have different accounts use the same document root"

    What is the unsafe way? Also if the client does not receive their cpanel username/password why would it be unsafe?

    Thanks
    The unsafe way, in my opinion, would be to manually modify the Apache configuration to make other accounts use the same document root; this may not work and I would not consider trying it. If there will be any scripts used on the site they should be ran as the user owning the virtual host; this is possible using both suEXEC and suPHP, and attempting to circumvent the protections these mechanisms offer would pose a security complication as you may, potentially, have multiple different users executing and writing to the same paths.

    I would consider trying the ScriptAlias directive in the Apache/httpd configuration to point to a shared installation of your software:
    Code:
    ScriptAlias /sitebuilder /path/to/your/shared/sitebuilder
    Please refer to the official Apache/httpd documentation for usage information: ScriptAlias Directive - mod_alias - Apache HTTP Server

    Custom Apache directives can be added using WebHost Manager via the following menu path (with linked documentation): WHM: Main >> Service Configuration >> Apache Configuration >> Include Editor

Similar Threads & Tags
Similar threads

  1. How to change the document root for my website in cpanel?
    By ker in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-05-2010, 12:08 AM
  2. Replies: 5
    Last Post: 08-03-2009, 07:46 AM
  3. Document Root inaccurate on new account?
    By muppsy007 in forum New User Questions
    Replies: 1
    Last Post: 03-16-2009, 09:25 PM
  4. Document Root?
    By kozmik in forum New User Questions
    Replies: 2
    Last Post: 11-23-2007, 01:28 PM
  5. Accessing a user's FTP account with ROOT
    By mkelly09 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-13-2005, 10:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube