Cakephp Cake_Core_ Cache Was Unable to Write 'Cake_Dev_En-Us'

Cakephp cake_core_ cache was unable to write 'cake_dev_en-us'

Did you make the /app/tmp directory and its subdirectories writable?

More info on possible duplicate here (although title might be misleading):

Facing a file permission error while running CakePHP in Ubuntu 10.4

CakePHP error: cake_core_ cache was unable to write 'cake_dev_en-us' on Ubuntu 14.04

If you're running apache or nginx (fast-cgi) as user www-data that user should be the owner of the file:

cd /var/www/html/tmc/app;

find tmp -type d -print0 | xargs --no-run-if-empty -0 chmod 2755;
find tmp -type f -print0 | xargs --no-run-if-empty -0 chmod 0644;

chown -R www-data:www-data tmp;

CakePHP error: cake_core_ cache was unable to write 'cake_dev_en-us' on Centos

CentOS have SElinux enabled by default.

sestatus

will show if its really active.

How to deactivate it:

vi /etc/sysconfig/selinux
update line to: SELINUX=disabled
reboot

Error Cache cannot write able in Cakephp version 2.7

Please check that app/tmp/cache/models and app/tmp/cache/persistent exists and they are writable.

If it still persists try to clean your old cache and check it back again.

CakePHP unable to write to certain files

As Wooble points out the app/tmp folder needs to be writeable by your webserver user.

To correct the other two errors you should edit the app/Config/core.php file as suggested in the errors. Cake ships with default values which should be changed so that not every Cake project has the same security values. If you open that file you will see instructions in the comments.

If you're new to Cake then have a look at the tutorial on the manual site http://book.cakephp.org ...



Related Topics



Leave a reply



Submit