Picture of Don Hinkelman
How to increase upload size on your server
by Don Hinkelman - Monday, 15 June 2009, 01:46 AM
I got a question from Mari Yamauchi at the JALTCALL conference in Tokyo about increasing file upload size on a Moodle server. Often when you move courses site-to-site, the zip file size of the course can be up to 100mb. Many hosting services and default settings of your own server will be only 16mb. But this can be easily made higher by making a .htaccess file in a text editor. Using FTP, you can upload this little two line file to your htdocs folder (is this correct?).

(1) Make .htaccess file in the top folder (the htdocs folder where your Moodle folder is).
(2) Add the 2 lines like these, with your preferred upload limit size:
php_value upload_max_filesize 200M
php_value post_max_size 200M

Alternatively, you can edit the php.ini file directly on your server. On a Linux server, it is usually located at etc/php.ini or usr/local/lib/php.ini. You can search by SSH to find it with the updatedb command, then type, locate php.ini.

P.S. watch for announcements on the Moodle for Language Teaching Repository--a wikipedia of free Moodle activities.