Hi there. This is possibly an installation issue but not sure so if it should be moved please someone move it. I asked our network manager to install Moodle 2.0 on our network which he just did but when I try to upload a file (in the file picker:: upload file) I get this message
I'll email him now and get back to you!
Ok..well he says it does now - but I still get the same error message
What with this and not being able to see properly externally hosted Moodle 2.0s I'm becoming a bit overmoodled at the moment...
Have the same issue here...
Server 2003 R2 running IIS 6.0 also.
IIS User has Modify permissions for MoodleData.
Cheers
Trevor
Setting the IUSR<server name> to have modify rights to the folder was certainly the way to do it for Moodle 1.9....
a) not realized there is a different import routine so got it wrong, or
b) thought the functionality to import has not been added, yet.
If
a) then it is not that intuitive,
or if
b) at this late stage, did someone forget something in the build I have installed?
Of course, this does not negate the possibility that I am
a) tied up on so many other issues at the moment that I am not really paying attention to Moodle 2.0.
or
b) actually thick as a brick and just getting it wrong,
There is no vote line here so please, do not look for one..
I have a virtual XP SP3 machine here at home, so I have installed IIS 5.1, MySQL 5.1 and PHP 5.2 on it and just downloaded the latest Moodle 2 standard release....
And am now trying a standard install...
I will let you know how it goes!
Jon
For some reason I kept getting session start errors until I added the debugging lines into my config.php; then it let me install without any errors!!! Very strange!
Anyway; on with the test in hand...
"ERROR: Invalid JSON string
Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\Temp\php66.tmp in C:\Inetpub\wwwroot\moodle\repository\upload\lib.php on line 94
{"error":"Can not read file, either file does not exist or there are permission problems","stacktrace":null,"debuginfo":null}"
So... it is a permissions issue...
I am going to try adding IUSR_<MACHINE_NAME> account with modify rights to C:\WINDOWS\Temp and see if that helps...
Jon
That fixed it!!!
Your network admin needs to make sure that which ever folder he has defined as the Temp folder in the php.ini; the IUSR_<MACHINE_NAME> account has modify rights over it too.
Oh yeah; and on a windows server make sure you have turned off slash arguments in Site Administration > server > HTTP too, or you won't see any of your uploaded files either.
HTH
Jon
Is there anyway the server environment check page in Moodle 2 could be made to perform a check on the status of the permissions to the PHP temp folder?
I am presuming that it is the change in the file uploads in version 2 that require access to the PHP temp folder when uploading files in Moodle (I am sure I never used to have to make that permission change on a Windows system... ). If so it would be nice to warn people some how if there file system is not set up right.
Jon
Once Moodle 2 is out I will revisit the page and try to tidy it up a bit.
Jon
I use Windows 7 x64 Ultimate. Everything runs smoothly with my XAMPP setup. I've given permissions for all users on the computer to access the following:
C:\wwwroot\xampp\moodledata
C:\Windows\Temp
I can't help but wonder if this is a config.php file problem. I'm missing something simple but I can't seem to figure it out.
Would be great if another Windows 7 user or anyone with an idea could lend a hand here. I'm kinda stuck in the water without the ability to add files.
Many thanks.
Hi yep, same here with Moodle 2.0.2+ installed: I can not upload from Opera browser - but FireFox works.
Is there a fix by now?
Olaf
php_extension dom
php_extension mbstring
php_extension soap
php_extension gd
php_extension intl
I try to click on the reference page but there is not any information yet been posted?
php 5.2
mysql 5.3
Jon
I noticed that the issues on this forum post are all related to permissions. If go through this whitepaper I have done on installing Moodle 2 on Windows Server with IIS it will tell you the changes you need in php.ini and the permission to the folders.
http://www.bfcnetworks.com/whitepapers/installing-moodle-2-on-windows-server-mysql-php-and-iis7/
I have followed all of your permissions entries in your whitepaper, but I still can not upload a file to my moodle install. I'm using Windows Server 2008, IIS 7, and MySQL for my install. Any help would be greatly appreciated.
Does anyone know WHERE the files are actually uploaded to? I used the white paper listed above to create a "sessions" folder in the C:\PHP folder and gave the folder the IUSR permissions of Full Control, but I still get the error. I made all of the changes in the php.ini file and restarted IIS as directed.
It looks like when I try to create a folder in Moodle that it creats the folder, in Files, but I can't find the folder that I create either. It is like it creats it, but it doesn't really create it.