I am using an Alias directory to use a content management system for multiple websites. It's like an application pool in IIS (for the Windows guys here).
While every website has its own user (I am using a VDS with DirectAdmin), and the CMS also has of course its own user, I now have permission issues because the CMS user needs read permissions in every website (= homedir).
How do I do that?
My situation:
/home/myapp/cms with user 'myapp'
<- is attached to every website by an Alias directive
/home/site1/public_html with user 'site1'
/home/site2/public_html with user 'site2'
I have tried chmod o+rX /home/myapp/cms
, but that didn't do the trick. Also chown is no solution, because it can handle only one single user.
Update: To illustrate this better, my site is showing the following error:
Warning: require(/home/site1/public_html/includes/config.php) [function.require]: failed to open stream: Permission denied in /home/myapp/cms/index.php on line 2
What means the 'shared application' hasn't have the sufficient right.
In this case I have also have done
chmod o+rwX /home/site1/public_html/includes/config.php
Of course 'myapp' and 'site1' is different in the real case. This is just an simplification.