apache2.2/php virtual host

When testing viewing index.php under a user directory, I kept getting this error:
in the log: client denied by server configuration
On the browser: Permission denied: access to /index.php denied

Feeling puzzled aftering trying to set the directory permission, I found this post and it really helped me out.

In the default directory configuration, it looks like this:
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all

It is very restrictive and essentially denies everything.

Now what I need to do is to add this in my virtual host session:
AllowOverRide All
Order deny,allow
Allow from all

That fixed the issue.

This entry was posted in server setup. Bookmark the permalink.