apache2上的权限被拒绝,并且更新了ubuntu 14.04

Mir*_*rlo 0 apache2 symfony ubuntu-14.04

我已将我的操作系统从12.04更新到ubuntu 14.04,当我尝试重新加载我的Symfony2项目时,我收到此错误:

You don't have permission to access /app_dev.php/ on this server.
Run Code Online (Sandbox Code Playgroud)

这是我的apache2文件:

<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 !
Run Code Online (Sandbox Code Playgroud)

Tom*_*ski 7

此问题与从Apache2.2 升级到2.4有关 - 请参阅doc

我有类似的问题,我将VirtualHost配置改为:

<VirtualHost>
    <Directory /home/developer/Projects/sf2/web/>
        Options -Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)