Monday, October 16, 2006

File Upload Limits on Media Wiki

Some sainted internet soul posted the solution for increasing file uploads on MediaWiki when using Apache 2. See the article here: http://meta.wikimedia.org/wiki/Uploading_files

Normally you must edit php.ini, but this file is not read for some reason by Apache HTTPD 2. Instead, you have to set the php parameters directly in httpd.conf, like so:

#Add these for php file limits
php_value upload_max_filesize "10M"
php_value post_max_size "10M"
php_value memory_limit "10M"
php_value file_uploads "On"

I put them directly below the line

LoadModule php4_module modules/libphp4.so

Thank you, thank you, however you are.

No comments: