Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.8.4
-
Fix Version/s: None
-
Component/s: Libraries
-
Labels:None
-
Environment:IIS 6, PHP 5.2.5, Windows Server 2003 SP2, Moodle 1.8.4
-
Affected Branches:MOODLE_18_STABLE
Description
As seen in http://moodle.org/mod/forum/discuss.php?d=90710 :
Before I go on, I will make this very clear...the permissions ARE set correctly, the path to the moodle data IS correct.
We've had Moodle working for quite some time now on PHP4. We took the decision to upgrade to 5.25 which went fine, but we now get the following error randomly when we use Moodle:
ERROR: You need to create the directory E:\moodledata with web server write access
Everything works ok, but we don't want the path of the moodle data being published like this.
Anyone know why this is happening? PHP reports no errors, Moodle logs report no errors.
I can't tell exactly why this is happening, but since this message is shown in function "make_upload_directory" (in lib/setuplib.php), looking at the code I can guess that moodle sees the dataroot as being non-existent.. which is most probably not true.
Maybe, it's the umask(0000) call (on line 113) ... as far as I know, umask just doesn't exist in Windows, so I don't know what it does. I don't have access to a windows server with IIS/PHP at this time to test this out, but I suppose it's also possible the webserver won't let you create a file with this kind of permission (world-read&writable).