Topic on Project:Support desk

Upload file size limited to 2 MB

3
Ablum010777 (talkcontribs)

I have set the maximum upload file size to 150M as well as my post max size.

This is what my site configuration of the web server says:

php_value upload_max_filesize 150M

php_value post_max_size 150M

In my LocalSettings.php I set

$wgMaxUploadSize = 150*1024*1024;

But the wiki still shows me a file upload maximum size of 2 MB. Am I missing something?

Bawolff (talkcontribs)

Create a php file containing only

<?php phpinfo();

And browse to it to verify your settings are what you think they are.

Ablum010777 (talkcontribs)

The problem is solved. PHP-FPM has a separate php.ini-file, and I had to adjust the Upload_max_filesize and the post_max_size. Now it works.

The ini-file is located at /etc/php/8.1/fpm.

Reply to "Upload file size limited to 2 MB"