Help! I'm working on a website that is on a server with over a dozen other virtual hosts. SAFE mode is turned on in apache. I've diffed two similar sites and can't figure out what the issue is. Google hasn't illuminated me, either. Here's the problem: one site works if the files in the chrooted /var/www/html directory are owned by a authorized admin for the virtual host, the other works only if that directory and the files are owned by root. Both sites make use of a directory in the chrooted /usr/share tree which is owned by root (this is the PEAR database routines). The site that doesn't work gives me a SAFE MODE access error and the other does not. The php.ini files are identical and the apache config files are identical except for the site names and names of the chrooted directories (each is named for it's own set of chrooted directories). If I change the PEAR directories to match the UID of the site that is broken then I get DB errors. I'm at the end of my rope trying to figure this out. Any help would be appreciated.
Thanks, Brian D.
__________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/
On Monday 13 June 2005 01:22 pm, Jack wrote:
... one site works if the files in the chrooted /var/www/html directory are owned by a authorized admin for the virtual host, the other works only if that directory and the files are owned by root.
Who's apache running as? What are the file permissions? User? Group?
Apache is running as apache. The file permissions are rw-r--r-- on all the directories accessed by apache or php. Each virtual webspace has it's own user and the group is the same as the user. So website-1 has file ownership of say admin1.admin1 and this is in the user and group as defined in the chrooted apache httpd.conf. AS I said, I compared two sites and have yet to see any configuration difference. In either the httpd.conf or it's included files or in the php.ini files.
--- Jonathan Hutchins [email protected] wrote:
On Monday 13 June 2005 01:22 pm, Jack wrote:
... one site works if the files in the chrooted /var/www/html directory are owned by a authorized admin for the virtual host, the other works only if that
directory
and the files are owned by root.
Who's apache running as? What are the file permissions? User? Group? _______________________________________________ Kclug mailing list [email protected] http://kclug.org/mailman/listinfo/kclug
__________________________________ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html