Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get the following log error when I try to run my website locally on my OS X Snow Leopard:

[error] [client] (13)Permission denied: access to / denied

I have enabled the virtual hosts and I have the following settings:

<VirtualHost *:80>
    DocumentRoot "/Dropbox/lang/www"
    ServerName llang

    <Directory "/Dropbox/lang/www" >
            Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
            AllowOverride All
            Order allow,deny
            Allow from all

Where am I getting it wrong?

share|improve this question
up vote 0 down vote accepted

Apache (running as user _www, group _www) must be able to change into /Dropbox/lang/www and read files there, either via normal unix rights or ACLs. How do the directory rights look like for /Dropbox, /Dropbox/lang and /Dropbox/lang/www respectively?

share|improve this answer
what do i do to get you the answer? – mgPePe Jul 6 '11 at 14:42
Open Terminal, enter the following commands and edit your question with the output: ls -ld /Dropbox, ls -ld /Dropbox/lang etc. – Sven Jul 6 '11 at 15:54
/Dropbox - drwx------@ 18 petarpetrov admin 612 Jul 6 13:37 /Dropbox and /Dropbox/lang/ - drwxr-xr-x 13 petarpetrov admin 442 Jul 6 13:48 /Dropbox/lang/ and /Dropbox/lang/www - drwxr-xr-x 12 petarpetrov admin 408 Jul 6 17:07 /Dropbox/lang/www/ What does that tell you? – mgPePe Jul 6 '11 at 22:17
This tells me that only the user petarpetrov is allowed to change into the /Dropbox directory and due to this, Apache can't read the subdirectories lang and lang/www. Try sudo chmod o+rx /Dropbox and see if this works, but beware that everyone on that machine can read this directory afterwards. – Sven Jul 6 '11 at 22:52
And isn't there a way to add permissions to a specific user. In this case _www? Or is it that this _www user has to be either the owner, or in the group owning it? – mgPePe Jul 7 '11 at 6:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.