Hi, first, thanks for any help you might offer on this issue...
We run Cpanel/WHM 11.25 on a server with PHP 5, suEXEC on, and CGI as the PHP handler.
Our sites are all agent sites for a group of insurance companies that are independent agents but under one broker. So, as part of the broker's package to the agents, they get their own semi-customizable site.
What I'm trying to build is a way that each user can login to a central location on the server and customize THEIR OWN files/site... Long story short, it would be much easier maintenance on us and we've been using XML files rather than a central database.
So, here's the setup:
brokerdomain.com
agent1.com
agent2.com
Obviously under Cpanel these are all separate users (and we want to keep them that way), so I've got it so a user logs into brokerdomain.com and the database says ok, you're agent 2 associated with agent2.com, /home/agent2/public_html/site_files is where your stuff is stored.
Apache/PHP is setup to prevent users from accessing other user's domains, but I have full access to the server... I just don't know how to make an exception for this one user to be able to access the "site_files" directory from any user home on the server. How do I make it so the php application running on brokerdomain.com can access /site_files/ under agent2.com (another user) ?
I'm a decent programmer but not an Apache expert, so please be gentle on me! Any suggestions/assistance would be awesome!
Thanks so much.



LinkBack URL
About LinkBacks
Reply With Quote






