| Line 439: |
Line 439: |
| | # Run '''''cd maintenance''''' | | # Run '''''cd maintenance''''' |
| | # Run '''''php update.php''''' | | # Run '''''php update.php''''' |
| | + | |
| | + | ==File uploads== |
| | + | |
| | + | ===Allow .pdf files to be uploaded=== |
| | + | |
| | + | See https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Configuring_file_types |
| | + | |
| | + | Add this to your '''LocalSettings.php''' file: |
| | + | |
| | + | $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', |
| | + | 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', |
| | + | 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg' |
| | + | ); |
| | + | |
| | + | ===Increase file upload size=== |
| | + | |
| | + | See https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Set_maximum_size_for_file_uploads |
| | + | |
| | + | * Add this to your '''LocalSettings.php''' file to allow uploading of 2G files: |
| | + | |
| | + | $wgUploadSizeWarning = 2147483647; |
| | + | $wgMaxUploadSize = 2147483647; |
| | + | |
| | + | * Then create '''/srv/wiki/uploads.ini''' with the following: |
| | + | |
| | + | upload_max_filesize = 2048M |
| | + | post_max_size = 2048M |
| | + | max_execution_time = 7200 |
| | + | max_file_uploads = 1000 |
| | + | |
| | + | * Add the following line to the '''/srv/wiki/docker-compose.yml''' file under volumes |
| | + | |
| | + | - /srv/wiki/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro |