Welcome Guest, Not a member yet? Register   Sign In
Cache unable to write to {0}
#1

(This post was last modified: 07-08-2020, 04:35 PM by Kaoo31.)

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

Attached Files Thumbnail(s)
   
Reply
#2

(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 ?
Reply
#3

(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
Reply
#4

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

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB