ZF2+原则-代理目录必须是可写的[fedora 23+apache]


ZF2 + Doctrine - Proxy Directory must be writable [fedora 23 + apache]

我在Zend Framework 2+Doctrine中做了一个应用程序,它在Ubuntu中正常工作,我现在使用Fedora 23,我得到了以下错误:

您的代理目录"data/DoctrineRModule/proxy"必须是可写的

我使用了chmod 755777,但错误仍然存在。

return array(
    'doctrine' => array(
        'configuration' => array(
            'orm_default' => array(
                'metadata_cache' => 'array',
                'query_cache' => 'array',
                'result_cache' => 'array',
                'hydration_cache' => 'array',
                'generate_proxies' => true,
                'proxy_dir' => 'data/DoctrineORMModule/Proxy',
                'proxy_namespace' => 'DoctrineORMModule'Proxy',
            )
        ),
        'connection' => array(
            'orm_default' => array(
                'driverClass' => 'Doctrine'DBAL'Driver'PDOMySql'Driver',
                'params' => array(
                    'host' => 'localhost',
                    'port' => '3306',
                    'user' => 'root',
                    'password' => '',
                    'dbname' => 'mydatabase',
                    'driverOptions' => array(
                        PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'"
                    )
                )
            ),
        )
    )
);

我的操作系统是Fedora23,我使用的是Apache

下面是我的虚拟主机的代码:

(我使用了来自zend框架网站的相同示例)

<VirtualHost myapplication.com:80>
    ServerName   myapplication
    DocumentRoot /var/www/html/vhosts-projects/myapplication/public
    RewriteEngine off
    <Location />
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} -s [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^.*$ /index.php [NC,L]
    </Location>
</VirtualHost>

可能会发生什么?已经研究过其他类似的主题,但都没有解决

确保用户可以访问路径中的所有目录,而不仅仅是Proxy