MediaWiki increase max file size upload

Installed MediaWIki 1.42.1 on to Debian 12, in the LocalSettings.php file I’ve added the following:

$wgMaxUploadSize = 2000000000;

No matter what number is added I cannot get to a file size greater than 8MB in the upload page.

On another wiki v1.35 I was able to increase the file size to 1.86GB.

Are there any other settings that need to be modified perhaps ?

PHP has a configurable upload size limit. Where that setting is found depends on how you installed PHP and how it’s integrated into the web server. Also, potential reverse proxies that sit between the client and the actual web server can limit file upload sizes. If all that is the same for the two wiki instances you mentioned, where one works and the other doesn’t, then it’s likely something else.

That’s a good steer thanks.

In the php.ini file I blanked the folllowing:

memory_limit =
post_max_size =
upload_max_filesize =

Then in my wiki localsettings.php file I have:

$wgMaxUploadSize = 200000000000;

Which equates to 186GB file limit.

Maybe useful for others.