Thursday, January 19, 2012

Moodle: Upload Big Files

  1. Set post_max_size to (ex.) 1000M in php.ini.
  2. Set upload_max_filesize to (ex.) 1000M in php.ini.
  3. Check the upload_tmp_dir value on the phpinfo page. If it's empty, php use the default tmp folder. On linux, it is /tmp. Sometimes it's a mapped partition/device and it has a size. If the size is lower than 1000MB, the upload won't work. Change the size of the tmp dir!
  4. If there is a LimitRequestBody row in httpd.conf (apache) or in a virtual host file, change the value to 0, it means unlimited.

No comments:

Post a Comment