Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exiting

Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exiting

by J Ramesh Fernandez -
Number of replies: 1
Moodle url is working fine for me in localhost and also from other pcs. since i'm the admin user. but for other users they are getting this error. 

So i'm unable to share the url to others.

Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exiting.

I have set IUSR full permission in moodledata folder and moodle folder.

How can i solve this?

$CFG->dataroot  = 'F:\moodledata';
Average of ratings: -
In reply to J Ramesh Fernandez

Re: Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exiting

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
It is likely that your dataroot is not writable by whatever user the webserver uses.