Changing the upload limit: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
See the MediaWiki documentation: https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Set_maximum_size_for_file_uploads | |||
==php== | ==php== | ||
Line 21: | Line 23: | ||
$ sudo service php7.4-fpm restart | $ sudo service php7.4-fpm restart | ||
==Localsettings.php== | |||
$ sudo nano /var/www/html/wiki/LocalSettings.php | |||
Search for: | |||
* <code>$wgUploadSizeWarning</code> | |||
* <code>$wgMaxUploadSize</code> | |||
and change the values. | |||
The values are written in Bytes, this page can be used to convert mb's to bytes: https://www.gbmb.org/mb-to-bytes |
Revision as of 12:01, 16 June 2023
See the MediaWiki documentation: https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Set_maximum_size_for_file_uploads
php
Upload limit is configured in the php.ini
config file.
To find it:
$ php --ini
To edit it:
$ sudo nano /etc/php/7.4/cli/php.ini
And the search for:
upload_max_filesize
post_max_size
and change the values.
Then restart php:
$ sudo service php7.4-fpm restart
Localsettings.php
$ sudo nano /var/www/html/wiki/LocalSettings.php
Search for:
$wgUploadSizeWarning
$wgMaxUploadSize
and change the values.
The values are written in Bytes, this page can be used to convert mb's to bytes: https://www.gbmb.org/mb-to-bytes