We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

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.phalcon.io/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:


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

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.


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

As in properly chown/chmod the vhost directory ?


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