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

Hello i have problem to setup a new project. I give permissions 777 but I'm still having this msg:

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

Apache/2.4.7 (Ubuntu) Server at blog.dev Port 80


58.4k
Accepted
answer

What is root project ?

If root project is "/home/user/.../". You need to chown it for example:

    sudo chown apache2:apache2 -R /home/user.../

Thien is right. Make sure the apache2 or www-data user (depends on your apache installation) is the owner of the folder.

Also, Apache servers running suphp will not allow access on any folder with 777 permissions so you may have to set those to 755 if you keep running into this problem.