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

I have made an application in Zend Framework 2 + Doctrine, and it worked normally in Ubuntu, I am now using Fedora 23 and I am getting the following error:

Your proxy directory "data/DoctrineORMModule/Proxy" must be writable

I have used chmod 755 and 777 but still the error persists.

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'"

My operating system is Fedora 23 and I'm using Apache.

Below is the code of my virtual host:

(i used the same example from zend framework website)

<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]

What might be happening? Already looked at other similar topics but none solved.


Make sure user have access to all directories in the path, not only Proxy.

Need Your Help

Google Play Services 8.4.0 breaks Google Cloud Messaging for Android if iOS is also used

android ios notifications google-cloud-messaging google-play-services

There are several posts that describe aspects of this issue, but there hasn't yet been a satisfying answer, so I'm attempting to collate them all here in hopes of getting an authoritative answer th...