Re: Apache permissions
Re: Apache permissions
- Subject: Re: Apache permissions
- From: Nathan Duran <email@hidden>
- Date: Mon, 24 Dec 2007 08:19:12 -0800
On Dec 24, 2007, at 3:34 AM, Mark Gilbert wrote:
Hi Folks.
Our application leverages Apache as an http file access mechanism.
Under Tiger we create a symbolic link to the root of the hard disc
(eg MacHD) inside the Apache Document Root (/Library/WebServer),
following which we can access files on the drive via
http://[ipaddr]/MacHD/myfolder/myfile
This all works so simply in Tiger, and Tiger Server.
Recentlt we have tried to set the same thing up in Leopard, but we
are being consistently denied permission to access files and folders
via this SymLink mechanism using the same technique as in Tiger.
Trying to change permissions on the drive doesn't help.
Clearly something has changed in the permissions for Apache
accessing files outside of the document root. I have ploughed
through some of the apache config docs without luck and I wondered
if anyone could tell me what changed in Leopard and how to fix it.
Any tips would be very welcome.
If you did any kind of upgrade install from Tiger to Leopard then
numerous file permissions are more than likely completely screwed up
thanks to some pretty poor migration code. Check the owner and group
of all your config files (remember that your user ID is more than
likely no longer 501, and that an "unknown" group ID is indicative of
a problem). Apache gave me nothing but 403s until I went and deleted
everything in /etc/apache2/users/ and re-created them from scratch.
And of course, make sure you're telling Apache to follow symlinks to
begin with.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden