Showing posts with label Moodle. Show all posts
Showing posts with label Moodle. Show all posts

Tuesday, May 4, 2010

How to change the max upload size for Moodle

These instructions will depend on your OS, and moodle version.

Our Moodle installation:
Cent OS 5.4
Apache v2.2.3
MySQL v5.0.77
PHP v5.1
Moodle v1.9.8

In order to change our max upload size we had to change 2 variables in our php.ini file. The php.ini file is located in the /etc directory. I use the nano editor to edit the file.
Here are the steps:
  1. cd etc
  2. nano php.ini (opens the php.ini file in the nano editor)
  3. look for the post_max_size variable and change it as follows
  4. post_max_size = 30M (change the 30 to whatever size you want)
  5. look for the upload_max_filesize variable and change it as follows
  6. upload_max_filesize = 30M (change the 30 to the same size as the post_max_size variable)
  7. ctrl-x (to exit the nano editor)
  8. Y (to save the file)
  9. Restart your box
That should do it. When the server comes back up you will be able to upload and post up-to 30MB files.