Increase file upload for php in Apache
March 28, 2010 7:35 pm PHP, Ubuntu/LinuxWhen working with moodle, I always encounter file upload size problem (normally 2M). To increase file upload size, edit /etc/php5/apache2/php.ini file (in Ubuntu 9.10) for PHP 5 and Apache 2 by changing the upload maximum filesize to the size you want:
[html]
upload_max_filesize=30M
upload_max_filesize=30M
Save the file and restart apache:
[html]
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 restart
