Wiki File Upload - shawfdong/hyades GitHub Wiki
The goal is to raise the maximum MediaWiki File Upload size to 100 MB on Pleiades.
In /etc/php.ini, the values for max size of post data[1] and maximum size of an uploaded file [2] are initially set as:
post_max_size = 8M upload_max_filesize = 2M
Let's change both to 100M:
post_max_size = 100M upload_max_filesize = 100M
Restart php-fpm:
service php-fpm restart
By default, the maximum accepted body size of a client request for nginx is 1m.[3] The value must be raised too; otherwise one will get 413 Request Entity Too Large errors when uploading big files. In /etc/nginx/conf.d/ssl.conf:
server { listen 443 ssl; server_name pleiades.ucsc.edu; client_max_body_size 100m;
Restart nginx:
service nginx restart
It seems unnecessary to set $wgMaxUploadSize in LocalSettings.php:[4]
$wgMaxUploadSize = 104857600; // 100 MB