Search code examples
ubuntulocalhostphalconpermission-denied

Access forbidden to my localhost and subfolders on Kubuntu, after install and set up Phalcon Frameworks


https://www.digitalocean.com/community/tutorials/how-to-install-and-get-started-with-phalcon-on-an-ubuntu-12-04-vps

I followed these instructions, but at the end, when I tested it on my browser "403 Forbidden" message appeared! All my folders and subfolders in /www/ was accessible before that and their permissions didn't change.


Solution

  • In the tutorial the apache configuration is as follows:

    <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory

    If you change that to the following:

    <Directory "/var/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory>

    and apply the several Order allow,deny and allow from all afterwards (when things are working) you will get better results.

    Since that tutorial the configuration of apache has changed. This : Require all granted is new since the latest versions of apache