I need to move the moodledata folder from its current location to another larger hard drive on the same server (space limitations). I tried this by copying the moodledata folder to its new location changing config.php to reflect this and renaming the old folder to moodledata_old and then restarting IIS. I logged into moodle fine no issues there but when I went to the site files I got this error (the webserver needs write access to this directory/folder - the site administrator needs to fix the file permissions). When I look at the permissions in windows on both directories they are identical, what am I missing, any help greatly appreciated.
I have since puit everything back the way it was and it's all working again.
Yes just checked again to make sure, and the re-applied the permissions to all the subdirectories again anyway. Still the same error - although I did write it down properly this time.
error - you need to create the directory D:\moodledata with web server write access
The site administrator needs to fix the file permissions
Try turning inheritance off for the moodledata folder, making sure the IIS account has full control of the folder (plus perhaps yourself, or administrators, or something!) and then force this down through the subfolders and files.
If that works you can then do a little 'fine tuning' with the permissions...
Not such a stupid question - the folder is read only and I can't remove the attributein windows or even in dos - help!!!!!!!
If so, you might look into the permissions on the other server (in the smb.conf file
if you're using Samba)
We have the same setup on one of our servers. A few ideas:
1. Moodle is complaining as the IIS anonymous account (Machinename\IUSR_machinename) needs write access to D:\moodledata, so check that this is the case. On our server, we have it set to Modify rights.
2. Try setting Everyone with Full Control on the D:\moodledata folder. If things start working then it's definitely a permissions problem.
One way to help track it down is to use xcacls.exe on the folder, or the Resultant Effective Permissions wizard. For the latter, right click on D:\moodledata -> Properties -> Security -> Advanced -> Effective Permissions -> Select button -> Location = Machinename, User = IUSR_Machinename -> OK. You should see something like the attachment.
Finally (this is a long shot ) try changing the $CFG->dataroot variable from 'D:\moodledata' to 'd:\moodledata', i.e. change the case of the drive letter.
Hope this helps!
Thanks for the reply. Numbers 1 and 2 I have already tried with no success at all. I've even gone as far as giving full control to (Machinename\IUSR_machinename) with the same result. The only thing I haven't tried yet is the upper/lower case drive letter because it never crossed my mind to do so (nothing's that finicky), but I'll give it a go and respond once tried thanks.
Please, if anyone has any suggestions as we are down to 1Gb now.