Apache virtual directory permissions

Yesterday I setup apache virtual host on my OSX computer. I’m going to setup web application based on ZF (Zend Framework) for further development. Fortunately, Mac already has Apache+PHP on board. So, I need only turn on apache, include php module in it and provide VirtualHosts.

The problem was with apache error ‘(13)Permission denied: access to’. That means that apache can get access to some folder/file.

But it was ok with permissions in that folder/file for apache user (_www in OSX). So, what’s wrong with it? 

In deed, apache needs reading or `chmod 755` permissions for all folders in the path to the destination folder/file. I found the folder and chmod it. For now, everything is just fine.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: