Cache unable to write to {0} |
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 ![]() I already tried giving it the permissions chmod 777 -R (07-08-2020, 04:32 PM)Kaoo31 Wrote: Hello!you success run codeigniter 4 in centos ?
(07-08-2020, 04:32 PM)Kaoo31 Wrote: Hello! 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
Please note that the numeric 777 should have a leading zero, 0777 because it is an octal based number.
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 |
Welcome Guest, Not a member yet? Register Sign In |