witch Posted September 9, 2010 Posted September 9, 2010 I know that there have been some threads mentioning this, but I am keen to know specifically how to do this on Server 2008R2. The Moodle FAQs only mention it for IIS, but surely if the rest of it, that they have titled '"XP and Server 2003" applied to Server2008 it would say so? Bit worried about breaking it
sister_annex Posted September 9, 2010 Posted September 9, 2010 you need to alter the php.ini file post_max_size = 1024M upload_max_filesize = 1024M that should do it - as far as i know it is not server specific you will need to restart iis after the change HTH Mark
witch Posted September 9, 2010 Author Posted September 9, 2010 Is that really all? Because the FAQs seem to mention a lot more than that We have done that but cant upload big files - could anything else be stopping it?
sister_annex Posted September 9, 2010 Posted September 9, 2010 You will need to change your 'Maximum uploaded file size' in moodle also Administration > Security > Site policies Ours is currently set at server limit HTH Mark
witch Posted September 9, 2010 Author Posted September 9, 2010 You will need to change your 'Maximum uploaded file size' in moodle also Administration > Security > Site policies Ours is currently set at server limit HTH Mark Ours is set as that as well. It is a server issue? Can I increase the server upload allowance and if so, where?
sister_annex Posted September 9, 2010 Posted September 9, 2010 Server limit pulls the info from the php.ini file. AFAIK that should be it and works fine for us here. It may be a course setting - that also has the ability to restrict file upload sizes. There is a course upload limit (default). Administration > Courses > Course Default Settings Is it a WAMP setup or do you use IIS? Mark
witch Posted September 9, 2010 Author Posted September 9, 2010 Note to self: DON'T listen to teachers! I was informed that the error mentioned file size...it doesnt.. The error, when I was finally told it, is more likely to be a timeout. I have increased the timeout to 900 seconds and will now go away and see if it works. Thanks
sister_annex Posted September 9, 2010 Posted September 9, 2010 haha, typical! No Problems - it may help someone else in the future Mark
witch Posted September 9, 2010 Author Posted September 9, 2010 Spoke too soon - still doesnt work but now getting at 404 error Any ideas?
sister_annex Posted September 10, 2010 Posted September 10, 2010 hmmmm 404 is usually File or Site not Found... I am presuming that it has been working fine up until this point or is this a test case? Timeouts tend to happen on large files usually >1Gb Have you checked file permissions on the directory that contains your moodledata? I am struggling at this point. Sorry
witch Posted September 10, 2010 Author Posted September 10, 2010 situation as follows: Uploads of 24MB or above are getting the 404 error. Anything less than this is fine, which is why it was thought to be a file size error. I have increased the file size and the timeout with no success any ideas?
sister_annex Posted September 10, 2010 Posted September 10, 2010 hmmm, tbh not really sure, and the box of straws that i'm clutching at are getting thin on the ground! the only things I can thing of is possibly Quotas(maybe), if it is IIS that you're running i dont think there are file size restrictions, if it is Apache there may well be but i know very little about apache. other than that I really dont know. A quick google come up with this, but not sure how helpful it would be - but it seems to be similar to the error you are getting http://moodle.org/mod/forum/discuss.php?d=144597 sorry I cant be of more help Mark
witch Posted September 13, 2010 Author Posted September 13, 2010 Found this: Adjusting File Size Limit in IIS 7 The problem is that in IIS 7 on Windows 2008 Server, the web application will reject any file that is larger than 30 MB. This is a default limitation of IIS. You can increase the maximum file size by adding the following code to in the web.config file: Does anyone think this will work, and if so, where do I find the file to alter?
Edu-IT Posted September 13, 2010 Posted September 13, 2010 Found this: Adjusting File Size Limit in IIS 7 The problem is that in IIS 7 on Windows 2008 Server, the web application will reject any file that is larger than 30 MB. This is a default limitation of IIS. You can increase the maximum file size by adding the following code to in the web.config file: Does anyone think this will work, and if so, where do I find the file to alter? Web.config is usually for ASP applications. Found this on Moodle. Modifying the IIS 7.0/7.5 configuration (Windows Server 2008, Windows Server 2008 R2) First increase activity and request time outs (allows large files to succeed on slow connections) FastCGI Settings > Edit (Right-click on PHP application) Set Process Model > Activity Timeout to '3600' (one hour) Set Process Model > Request Timeout to '3600' (one hour)Next set 'Maximum allowed content length' Request Filtering > Edit Feature Settings: Set 'Maximum allowed content length' to your desired file size (in bytes) e.g. '536870912' for 512MB (default is approximately 28.6MB)
witch Posted September 13, 2010 Author Posted September 13, 2010 Web.config is usually for ASP applications. Found this on Moodle. Modifying the IIS 7.0/7.5 configuration (Windows Server 2008, Windows Server 2008 R2) First increase activity and request time outs (allows large files to succeed on slow connections) FastCGI Settings > Edit (Right-click on PHP application) Set Process Model > Activity Timeout to '3600' (one hour) Set Process Model > Request Timeout to '3600' (one hour)Next set 'Maximum allowed content length' Request Filtering > Edit Feature Settings: Set 'Maximum allowed content length' to your desired file size (in bytes) e.g. '536870912' for 512MB (default is approximately 28.6MB) Thanks, but I did that as well and it didnt help. General consensus on the moodle forum is that the problem lies outside moodle, which is why I am looking at IIS and everything else!
Edu-IT Posted September 13, 2010 Posted September 13, 2010 Could you not setup WAMP and see if you have the same issue? That would rule out IIS.
witch Posted September 14, 2010 Author Posted September 14, 2010 Could you not setup WAMP and see if you have the same issue? That would rule out IIS. Could do...if I knew how.. Update on issue: after doing the IIS bits and pieces, the error message no longer appears. Instead, the progress bar goes across to about 1/3 and then...just stops. No message, no upload, no nothing
sister_annex Posted September 14, 2010 Posted September 14, 2010 Ok, this may help Fixing File Upload Size Limit in IIS 7 | cyprich.com You will have Moodle as an application i think you need to create a file called web.config (if it doesn't already exist) and add the text shown on the blog above That pot of straws has now definately run out HTH Mark
witch Posted September 14, 2010 Author Posted September 14, 2010 Yes, I did all that back on page 1 - but thanks for the pot of straws anyway!! Come on all you other clever..people - someone must know of some setting I have missed SOMEWHERE
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now