How to Increase Max File Upload Size - Linux

How to Increase Max File Upload Size - Linux

by Paul Webster -
Number of replies: 2
The max file upload size is 2 MB. I am installed on Ubuntu Server 9.04.
How do I increase this so that students and teachers can upload media (short videos, etc). I imagine that I could use ftp if I point it to the right place but I don't really want to do this with kids. I want our publishing class to post weekly videos to a wiki so that the rest of the classrooms can view them. I could post these to a 3rd party (teachertube or something) but this would limit speed by going out of our network.

My understanding is that this needs to change in a php file or in an apache file somewhere.

Thanks for your help.
Average of ratings: -
In reply to Paul Webster

Re: How to Increase Max File Upload Size - Linux

by Andrea Bicciolo -
You should edit your php.ini file changing upload_max_filesize and post_max_size to fit your needs. Once done you must restart the web server to let the change take effect. On Debian the file is usually found /etc/php5/apache2/, so probably the same location is fine for Ubuntu.

If everything is Ok you should be able to increase upload size at site and course level. Please remember course level upload size is always limited by site level upload size.
In reply to Paul Webster

Re: How to Increase Max File Upload Size - Linux

by Marc Grober -
Searching in the docs you will come across:
http://docs.moodle.org/en/Installing_Moodle/Creating_custom_php.ini_files#Apache_configuration_versus_php.ini

which will take you here:
http://moodle.org/mod/forum/discuss.php?d=124441&parent=550026

which will provide critical info on this issue which will effect you since you state you are using Ubuntu.

You do NOT have to restart apache unless you are NOT running php as cgi if you are only altering php.ini files!

If you change apache conf files or are running php as mod_php then you will....

Marc