Error cache/Invalid cache configuration file

Error cache/Invalid cache configuration file

by Trans Retail Learning Institute -
Number of replies: 4
Hi there ,

im running moodle 3.10
i accidently change entire both moodledata and moodle directory permission to 755 , and i have undo to previous permission, but while i refresh the web-page i got like this  :



and this is my file permission

drwxr-xr-x.  6 root   root          4096 Feb 19 20:21 .
drwxr-xr-x. 22 root   root          4096 Jul  4  2019 ..
drwxr-xr-x.  2 root   root          4096 Oct  1 23:52 cgi-bin
drwxrwxrwx.  2 apache apache        4096 Oct 17  2018 chtml
drwxr-xr-x  59 root   root          4096 Feb 20 09:42 html
-rw-r--r--   1 root   root     108146449 Feb 19 20:23 html.tar.gz
drwxrwxrwx  15 apache apache        4096 Feb 19 18:55 moodledata

Do you have any idea guys ?



Average of ratings: -
In reply to Trans Retail Learning Institute

Re: Error cache/Invalid cache configuration file

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
As your web server does not run as root you have taken away write permission to those directories. Change the permissions to 0777 - as long as the box is otherwise secure (i.e. not shared)
In reply to Trans Retail Learning Institute

Re: Error cache/Invalid cache configuration file

by Carlos Casanova -
Hi,
I have the same problem with version 3.9.3
It was working fine but one day it started throwing this error. I checked moodledata permissions and they are correct. I deleted the cache and localcache folders. It recreates them but the problem persists. Any idea where to look?
Thanks
In reply to Carlos Casanova

Re: Error cache/Invalid cache configuration file

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

This error occurs when PHP cannot read muc/config.php in Moodledata. You can delete this file, it will be generated automatically, but make sure the web server can read and write to the muc folder (and all files and folders in Moodledata).

On my CentOS server PHP is run as the user account apache so that's the user I make owner of Moodledata, for example:

# chown -R apache. moodledata
Average of ratings: Useful (2)
In reply to Leon Stringer

Re: Error cache/Invalid cache configuration file

by Carlos Casanova -
Thank you very much Leon, I finally restored a backup and I adjusted the permissions. It must have been a matter of permits.
Greetings