CodeIgniter Forums
Cache unable to write to {0} - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Cache unable to write to {0} (/showthread.php?tid=76970)



Cache unable to write to {0} - Kaoo31 - 07-08-2020

Hello!
I'm new at the forum and using the framework. 
And I'm stuck with this problem, I finished an app and now I'm trying to run it in Centos 7, and I'm getting this error.

Help Sad And thanks!

I already tried giving it the permissions
chmod 777 -R


RE: Cache unable to write to {0} - losemoba - 02-05-2021

(07-08-2020, 04:32 PM)Kaoo31 Wrote: Hello!
I'm new at the forum and using the framework. 
And I'm stuck with this problem, I finished an app and now I'm trying to run it in Centos 7, and I'm getting this error.

Help Sad And thanks!

I already tried giving it the permissions
chmod 777 -R
you success run codeigniter 4 in centos ?


RE: Cache unable to write to {0} - joebanescu - 03-10-2021

(07-08-2020, 04:32 PM)Kaoo31 Wrote: Hello!
I'm new at the forum and using the framework. 
And I'm stuck with this problem, I finished an app and now I'm trying to run it in Centos 7, and I'm getting this error.

Help Sad And thanks!

I already tried giving it the permissions
chmod 777 -R

The correct way to use chmod it is like this: chmod -R 777 "path to folder or file".
I had the same problem and I past this error by executing the next terminal command: chmod -R 777 writable


RE: Cache unable to write to {0} - John_Betong - 03-10-2021

Please note that the numeric 777 should have a leading zero, 0777 because it is an octal based number.


RE: Cache unable to write to {0} - pmugabi - 04-22-2021

This problem is specific to Centos 7 and has nothing to do with permissions of the folder. It's caused by SELINUX

Open the /etc/selinux/config file and set the SELINUX state to disabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

And then reboot