21
Aug
Most instructions that I could find online are for Apache powered sites and somewhat outdated.
Below is what I did for my nginx + php5-fpm powered Mediawiki.

Assume you want to increase from the default 2M to 8M.
- in the Ngix configuration file, include the following
client_max_body_size 8m; - modify /etc/php5/fpm/php.ini file, adjust to the following
post_max_size = 8M upload_max_filesize = 8M - modify ~/wiki/LocalSettings.php file, add the following
$wgUploadSizeWarning = 5*1024*1024; $wgMaxUploadSize = 8*1024*1024; - service php5-fpm restart; service nginx restart
Please note that the $wgMaxUploadSize value is not enforced for local file uploading and the most critical one is to modify the php.ini file.
- 作者:cail
- 版权声明:署名-非商业性使用-禁止演绎 CC BY-NC-ND 3.0
- 原文网址:http://en.dogeno.us/?p=8001
- 最后修改时间:2012年8月21日 22:43 PDT
Previous:
Weekly Tweets for 2012-08-20
Next:
小清新的豆瓣
blog by cail
- » the Paper Link - my latest Creation for PubMed users
- » How to use ImageJ to analyze images?
- » 2shRNA - design oligos for RNAi
- » Play background music
- » about this blog
- » about me
Hot in 'How-To'
- analog - analog/digital - digital, VGA - DVI - HDMI - 74,660 views
- Ez-12 windsurfer antenna - 54,082 views
- Import custom ringtones to iPhone via iTunes (no jailbreaking required) - 47,122 views
- How to add new ringtones to iPhone - 42,522 views
- Use GParted to align partitions on a SSD hard drive for better performance - 41,033 views
put your ads here? contact me
Leave a Reply