We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

403 Forbidden

Hi !

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

I'm following the tutorial: https://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:

.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.



5.0k
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 ?



2.3k

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