Apache randomly loses permission to see files.
Posted
by arbales
on Server Fault
See other posts from Server Fault
or by arbales
Published on 2010-04-29T23:06:56Z
Indexed on
2010/04/29
23:58 UTC
Read the original article
Hit count: 500
I have a server (Leopard Server, not my choice) running Apache and MySQL. Several months ago, the server began to raise "Forbidden" errors at random intervals, preventing access to a PHP application. This behavior randomly ceased.
Now, several days ago I installed Passenger and deployed a Sintra/Rack application. The application runs as a user acarneg
(for example) from /Library/WebServer/Documents/presto/current/public
, acarneg
owns the entire structure. The _www
user has access to the directory via ACL chmod +a "_www allow read,write,..."
.
Everything works great! But after a randomish interval, often ~12 or ~24 hours, Passenger throws an error that also prevents the PHP application from running. Passenger Error #2. Cannot stat file config.ru. Permission denied.
But the permissions haven't changed (confirmed) and all one has to do to resolve the error is sudo apachectl graceful
.
If the permissions aren't changing and Apache doesn't seem to have a legit problem, what is causing this mess? Why did it stop before, and why has it resumed!?!?!?
Thanks for the help!
© Server Fault or respective owner