Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

403 Forbidden - Permission Error


I've got following problem:

You don't have permission to access / on this server.

Apache/2.2.15 (Oracle) Server at Port 80

I've tried: chmod xxx /var/www/site where xxx is on of these permissions: 777, 755, 655 However it didn't help. I've set user/group for that folder root:root. Similar configuration i've got for other virtual host and that works there but not for phalcon project. I can access to files that are direcrly in that folder, for example /info.php and got php configuration information.

My .htaccess in /var/www/site is:

<IfModule mod_rewrite.c>

RewriteEngine on
RewriteRule  ^$ public/    [L]
RewriteRule  (.*) public/$1 [L]


Try throwing an index.html file in there & see what happens then. The 403 error might not be due to file permissions, but due to the fact that Apache might be configured to not allow directory listings. If that's the case, then maybe your .htaccess file isn't working.

edited Sep '15

When I'm throwing index.html I've got:

Mod-Rewrite is not enabled Please enable rewrite module on your web server to continue

but when I create test.php file with:


I've got there mod_rewrite


When I've added:

<Directory /var/www/html/xxx>

Options All AllowOverride None Order allow,deny Allow from all </Directory>

to virtua host config I got list of all files, not site


It may be possible that modrewrite is not enabled on a per-directory basis. Basically that means you can put modrewrite directives in the base apache config files, but not in .htaccess.