我在OS X 10.7.4上使用Apache(与Zend Server捆绑在一起)获得HTTP 403,权限错误13(文件系统?)。
[Thu May 17 16:40:58 2012] [error] [client ::1] (13)Permission denied: access to / denied
这是我在httpd-vhosts.conf中的configuration
<VirtualHost *:81> DocumentRoot "/Users/shamil/Documents/Sites/shamil_blog" ServerName blog.shamil.local ServerAlias blog.shamil.local ErrorLog "logs/shamil_blog-error_log" CustomLog "logs/shamil_blog-access_log" common DirectoryIndex index.php <Directory /Users/shamil/Documents/Sites/shamil_blog> Options +Indexes +FollowSymLinks +ExecCGI DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
我已经在shamil_blog文件夹上设置了适当的权限:
drwxrwxrwx 25 shamil staff 850 May 17 16:01 shamil_blog
和“站点”文件夹上:
drwxrwxrwx 4 shamil staff 136 May 17 15:59 Sites
那么,为什么我做错了?
在这个阶段,我认为/ User的权限限制太大,Apache甚至不能访问文档根目录。 请记住,Apache用户标识将需要执行权限到它需要遍历到达文档根目录的任何目录。