title: Cakephp Permission denied Fileengine.php
body: <p>I am running the following cake command:</p>
  
  <pre><code>./Console/cake schema create DbAcl
  </code></pre>
  
  <p>Now the database tables are created but at the end im getting the following error:</p>
  
  <pre><code>Warning: SplFileInfo::openFile(/var/www/bloglic-2013/cake/app/tmp/cache/persistent/myapp_cake_core_object_map): failed to open stream: Permission denied in /var/www/bloglic-2013/cake/lib/Cake/Cache/Engine/FileEngine.php on line 313
  
  
  Warning Error: SplFileInfo::openFile(/var/www/bloglic-2013/cake/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to open stream: Permission denied in [/var/www/bloglic-2013/cake/lib/Cake/Cache/Engine/FileEngine.php, line 313]
  
  Warning Error: _cake_core_ cache was unable to write 'file_map' to File cache in [/var/www/bloglic-2013/cake/lib/Cake/Cache/Cache.php, line 309]
  
  Warning Error: SplFileInfo::openFile(/var/www/bloglic-2013/cake/app/tmp/cache/persistent/myapp_cake_core_method_cache): failed to open stream: Permission denied in [/var/www/bloglic-2013/cake/lib/Cake/Cache/Engine/FileEngine.php, line 313]
  
  Warning Error: _cake_core_ cache was unable to write 'method_cache' to File cache in [/var/www/bloglic-2013/cake/lib/Cake/Cache/Cache.php, line 309]
  </code></pre>
  
  <p>Now I added chmod 755 to all of the folders, and redone the command, but without any luck. Can anyone tell me how can I fix this?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Abit more information:</p>
  
  <p>Here is my rights to the folders mentioned above:</p>
  
  <pre><code>marc@Marc&gt; cd /var/www/bloglic-2013/cake
  marc@Marc&gt; ls -ld app/tmp/cache/persistent/
  drwxrwxrwx 2 marc marc 4096 Aug 13 22:50 app/tmp/cache/persistent/
  
  marc@Marc&gt; chmod 755  app/tmp/cache/persistent/
  marc@Marc&gt; ls -ld lib/Cake/Cache/
  drwxrwxr-x 3 marc marc 4096 Aug  2 10:16 lib/Cake/Cache/
  
  marc@Marc&gt; ls -ld lib/Cake/Cache/Cache.php
  -rwxr-xr-x 1 marc marc 16179 Aug  2 10:16 lib/Cake/Cache/Cache.php
  
  marc@Marc&gt; ls -ld lib/Cake/Cache/Engine/
  drwxr-xr-x 2 marc marc 4096 Aug  2 10:16 lib/Cake/Cache/Engine/
  
  marc@Marc&gt; ls -ld lib/Cake/Cache/Engine/FileEngine.php 
  -rwxr-xr-x 1 marc marc 9759 Aug  2 10:16 lib/Cake/Cache/Engine/FileEngine.php
  
  marc@Marc&gt; ls -ld lib/Cake/Cache/Cache.php
  -rwxr-xr-x 1 marc marc 16179 Aug  2 10:16 lib/Cake/Cache/Cache.php
  </code></pre>
  
  <p>Also note that i cannot open or run any of my actions and views without getting the same messages </p>
  
  <p><strong>More information</strong></p>
  
  <pre><code>marc@Marc /var/www/bloglic-2013/cake $ ls -l app/tmp/cache/persistent/
  total 44
  -rw-r--r-- 1 www-data www-data  945 Aug 13 18:45 controllers_hashes.txt
  -rw-rw-r-- 1 www-data www-data   43 Aug 13 18:53 myapp_cake_core_acl_en-us
  -rw-rw-r-- 1 marc     marc       43 Aug 13 23:04 myapp_cake_core_cake_console_
  -rw-rw-r-- 1 marc     marc       43 Aug 13 23:04 myapp_cake_core_cake_dev_
  -rw-rw-r-- 1 www-data www-data   43 Aug 13 22:59 myapp_cake_core_cake_dev_en-us
  -rw-rw-r-- 1 www-data www-data   43 Aug 13 22:59 myapp_cake_core_cake_en-us
  -rw-rw-r-- 1 www-data www-data   43 Aug 13 22:59 myapp_cake_core_default_en-us
  -rw-rw-r-- 1 www-data www-data 5686 Aug 13 22:59 myapp_cake_core_file_map
  -rw-rw-r-- 1 www-data www-data  163 Aug 13 22:59 myapp_cake_core_method_cache
  -rwxr-xr-x 1 marc     marc      441 Aug 13 22:21 myapp_cake_core_object_map
  </code></pre>