May 19, 2012
tom

HTTP 403 (error 13) with Zend CE on OS X

Question

I’m getting a HTTP 403, with permission error 13 (file system?) using Apache (bundled with Zend Server) on OS X 10.7.4.

[Thu May 17 16:40:58 2012] [error] [client ::1] (13)Permission denied: access to / denied

Here’s my config in httpd-vhosts.conf

<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>

I have set the appropriate permissions on the shamil_blog folder:

 drwxrwxrwx  25 shamil  staff   850 May 17 16:01 shamil_blog

and on the Sites folder:

drwxrwxrwx   4 shamil  staff    136 May 17 15:59 Sites

So, why am I doing wrong?

Asked by ct2k7

Answer

At this stage, I assume the permissions on /User are too restrictive, and Apache can’t even get to the Document Root. Remember, the Apache user ID will need execute rights to any directory it needs to traverse to get to the Document Root.

Answered by EightBitTony

Related posts:

  1. getting a 403 error
  2. 403 Forbidden error on Mac OSX – Apache and nginx
  3. 403 Error after upgrading from Snow Leopard to Lion
  4. Apache: 403 Forbidden
  5. How do I deploy two zend frame work based apps in apache2 like the one in tomcat

Leave a comment