MediaWiki
Jump to navigation
Jump to search
MediaWiki is the wiki software we used for Sasara.moe. Its derived from Wikimedia Foundation projects like Wikipedia and Wikimedia Commons.
Image uploads
Enabling uploads
Open LocalSettings.php
, and change this option:
$wgEnableUploads = true;
Make sure the uploads
folder is writable by the web server process. We run ours in a separate zfs dataset with execution off and quotas for security:
zfs create $DATASET/wiki/uploads zfs set exec=off $DATASET/wiki/uploads zfs set quota=10G $DATASET/wiki/uploads
Improve quality
The default quality setting for image compression is 80
, which isn't great.
Open LocalSettings.php
, and add the following option under wgEnableUploads
:
$wgJpegQuality = 96;
Increasing size
Open php.ini
, and change this to what you want:
upload_max_filesize = 8M
If you run nginx, you may need to add this to your nginx.conf
file to prevent HTTP 413 Entity Too Large errors:
http { client_max_body_size 8M; }