I enabled the logging option in the config file:
debug.log-request-handling = "enable"
I get the following in the log file:
2009-08-16 02:42:27: (response.c.473) -- handling physical path 2009-08-16 02:42:27: (response.c.474) Path
: /var/www/sites/mysite.com/http/media/css/style.css 2009-08-16 02:42:27: (response.c.520) -- access denied
I then went and checked the permission on all those directories, changed them so www-data group has permission but i still get 403 forbidden errors and errors in the log file.
chgrp -R id:www-data css/ chmod -R g+rx css/
and ls -l
> email@example.com:/var/www/sites/mysite.com/http/media$ > ls -l total 12 drwxr----- 2 id > www-data 4096 Aug 16 01:59 css > drwxr----- 2 id www-data 4096 Aug 16 > 02:00 images drwxr----- 3 id www-data > 4096 Aug 16 02:00 js
Tried granting the www-data user rwx permissions as well, and still get forbidden errors.
How can i fix this? It's possible that the server is not using the www-data user, how can i check that it's running under this user?