Friday, March 23, 2012

Changing the site wide file upload size

In my new moodle 2.2 server, I looked at the default course settings and saw the max. file upload size I could choose was 2MB. Fine.

In order to increase the size, at least so I have the option to choose say a 8MB file size, I went through the following steps.

  • 1 - Reported the current php settings on my server - Site Admin|Server|PHP info
  • 2 - Verified what I was seeing in course default as max size matched info reported by PHP info
  • 3 - Saw the property called upload_max_filesize in the php.ini file
  • 3.5 Verified that I had a recent copy (backup) of the php.ini file - prior to editing it
  • 4 - Changed the value in php.ini file propery upload_max_filesize from 2 MB to 10 MB
  • 5 - Saved the file
  • 6 - peaked at course default setting page, refreshed, did not see the change
  • 7 - Restarted the Apache service, via the Wamp service
  • 8 - peaked again at course default setting page, refreshed, saw the change
I actually set the course default value to 5 MB. Which left a little room to up the selection for a specific course if desired.

No comments:

Post a Comment