Hi All
We are running Moodle 2.2.5 on a CentOS Linux server and are constantly randomly getting the "Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exiting." error just randomly,, the site will function fine for a while then suddenly you'll click on something (anything that's clickable in Moodle), and then will be presented with this error on a white screen..
We've tried all sorts of things to remidy the issue, first off we altered the SELinux permissions on the moodle data directory using "chcon -Rv --type=httpd_sys_content_t /var/moodle_data" ,, and this would work for a couple of days, then suddenly we would start to see the dataroot error appearing again randomly (possibly every 20 clicks or so).. We tried the "semanage fcontext -a -t httpd_sys_content_t "/var/moodle_data(/.*)?" command and this seemed to apply a more permenant fix,, albeit about 5 days later the error would randomly return again..
Growing disheartened by the problem we simply turned SELinux off per advice on many other forum posts regarding the issue,, needless to say a day or two later the error simply returns (completely randomly)..
This is driving everyone completely bonkers now.. Has anyone else encountered a similar problem????
Thank you for any help in advance!!
..Adam