0

i have updated my OS from 12.04 to ubuntu 14.04 and when i try to reload my Symfony2 project i get this error :

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

here's my apache2 file :

<VirtualHost *:80>
    ServerName  s**a
    ServerAlias  d**n

    # Indexes + Directory Root.
    DirectoryIndex index.html index.php

    DocumentRoot /home/****/


    <Directory />
                Options -Indexes +FollowSymLinks
        Require all granted
        </Directory>

        <DirectoryMatch .*\.svn/.*>
            Deny From All
        </DirectoryMatch>

    # Logfiles

</VirtualHost>

PS : it works well before the update !
Mirlo
  • 625
  • 9
  • 26

1 Answers1

7

This problem is related to upgrade from Apache 2.2 to 2.4 - see doc

I had similar problem and I changed my VirtualHost configuration to something like:

<VirtualHost>
    <Directory /home/developer/Projects/sf2/web/>
        Options -Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
Tomasz Madeyski
  • 10,742
  • 3
  • 50
  • 62
  • same problem ! should i change my /etc/apache2/apache2.conf ! #Options FollowSymLinks Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order deny,allow Allow from all – Mirlo Aug 25 '14 at 10:40
  • I guess so - `Order deny allow` and `Allow from all` directives are no longer valid for `Apache 2.4` – Tomasz Madeyski Aug 25 '14 at 11:15