Resolution 403 resolved error on Apache even after Allow from Everyone and Chmod 777?

My DocumentRoot is located in ~ / Dropbox / Websites. It is configured as "Allow from all" and "Allow all" in vhosts and in httpd.conf, and I even put 777 permissions on the entire DocumentRoot recursively (this is only local dev env., I would never live, Don't worry. This works like a charm on Ubuntu and Windows but on OSX it keeps telling me that Permission Denied What else can I try? Is there a way to see WHY the permission was denied? It would be nice if I at least got a hint like "_www is not allowed to access this folder" or ".htaccess does not allow writing to this folder" but this generic message has zero help.

I also tried changing the owner of the directory to _www: _www, which Apache works like on OSX, but nothing changed.

Error logging:

[Fri Feb 01 12:31:42 2013] [error] [client 127.0.0.1] (13)Permission denied: access to / denied

      

Access log entry:

127.0.0.1 - - [01/Feb/2013:12:31:42 +0100] "GET / HTTP/1.1" 403 202 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
127.0.0.1 - - [01/Feb/2013:12:31:42 +0100] "GET /favicon.ico HTTP/1.1" 403 213 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"

      

Additional information: Virtual hosts are working. Access errors are being logged in their correct location, under / logs inside the vhost folder itself, I just can't get past the 403 error. I guess this means it is a .htaccess issue as apache obviously manages to write to the folder, no?

+3


source to share


2 answers


IIRC, on OS X your home directory is not the executable world by default, so it can't get into any directory under that. You can check with ls -ld ~

and fix it with chmod go+x ~

. Make sure every directory above your document root is at least world-class.



+4


source


onlineoffline

# onlineoffline tag - don't remove
    Require all granted



Just do it in C: \ wamp \ bin \ apache \ apache2.4.9 \ conf / httpd.conf and restart apache.

0


source







All Articles