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

Hi !

I want to try Phalcon and I've a problem with it.

I'm following the tutorial: http://docs.phalconphp.com/en/latest/reference/tutorial.html

When I want to create a controller for my first page, I've an error: You don't have permission to access / on this server/

I think .htacces file block the URL rewriting:

.htaccess:

#/framework/.htaccess
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule  ^$ public/    [L]
    RewriteRule  (.*) public/$1 [L]
</IfModule>

I don't know how to fix that, I work on a mac with bitnami MAMP(apache).

Do you have any idea ?

Thanks a lot.



2.6k
Accepted
answer

Did you check if your apache user has the proper rights to access the files?

As in properly chown/chmod the vhost directory ?



1.3k

thx for your answer, but i've chose nginx for a faster website. It works fine ;)