setting same virtualhost DocumentRoot for a different cpanel user

jonbofh

Registered
Feb 25, 2014
3
0
1
cPanel Access Level
DataCenter Provider
Hi,

I have a user who wants to host and manage their home brewed application using cpanel.

The gist of it is that there are multiple unix users (for the sake of quotas) who all need to have documentroot pointing to the same place.

It's like user1.domain.com, user2.domain.com; subdomains would be an option but they don't cover the quota needs(afaik)

So the beginning question would be

how to manually set the DocumentRoot for user2 to /home/user1/public_html ?

how would groups be set up to allow rw access to /home/user1 for user2?

PS. I don't have the full spectrum of the development of this application and the user would be better off posting directly here, but that isn't happening apparently.

Any input greatly appreciated.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

The best option here is to add the additional domain names as "Addon Domains" in the cPanel interface. This will allow you to assign FTP permissions to individual usernames, and setup FTP quotas for those users. Otherwise, the alternative would be to simply provide the cPanel username/password to all of the users who need full access to the account.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Yes, you can use a subdomain as the domain name when creating an addon domain in cPanel.

Thank you.