Docroot and public_html owner

datacreek

Verified User
Joined
Feb 5, 2006
Messages
14
I'm trying to emulate something that apparently is fairly easy to do in CPanel.

I'm setting up a multistore situation using OpenCart. The satellite stores (domains) must point to the mainstore's domain public_html folder.

I've been able to create the satellite stores (domains) successfully when creating them under one (user) IP. I had to create symlinks and grant public_html owner this way
chown -h userA:userA /home/userA/domains/satellitedomain.com/public_html
This worked but not really what I want to do. These are all using same IP.

I would like to avoid using a UCC Cert (multidomain) for several reasons.

Apparently people are doing this with CPanel.


I tried changing the document root path of userB to the main store domains public_html using the DOCROOT token.
|?DOCROOT=/home/userA/domains/mainstore.com/public_html|

I get a "you do not have permission" message when trying to browse to it.
I think, almost positive this has to do with public_html owner problem
I don't know if it can be done or how I can grant owner status using a separate domain account.

I'm no guru and most all command line command I get are from this or other forums or a google lookup. I learned the above on this forum. That's why I'm asking if this can even be done and if I used the above command I'm not sure if it should be:
userA:userB or userB:userA
with userA being the main store domain and userB being a satellite store.

Anyway this is what I've been trying. Hopefully I'm on the right track and this can be done.

I've noticed a few questions here similar to this but not a clear cut anwer/solution.

Any help is greatly appreciated and hopefully this can be done with DA because I believe it's being done from the panel in CPanel.

Thanks so much.
 
The only way I think it could work is put all the users in the same group and make sure that group had ability to read the data in the folder you wanted. Then just create the symbolic link back to that public_html folder. You would have to make sure the parent folders had permission to let the user in too though. I would make a few test accounts and practice setting something up.

You could try by just adding the new user to the old users group and see if it worked.
 
Back
Top