How can the UPLOAD_MAX_FILESIZE value on the server be different from the value typed in php.ini?

601 Views Asked by At

I'm facing a problem with a php.ini file on my Debian server:

  • I have changed UPLOAD_MAX_FILESIZE and MAX_INPUT_VARS in the php.ini file to use Moodle properly

  • I have changed all the occurrences of upload_max_filesize in all the .ini files and .conf files where I found this variable

  • but when I look at the info displayed via info.php, the value for these two vars are the default ones, and not the values I typed, though php_ini_loaded_file returns the path of the file I have modified

Has someone an idea of what the problem is?

1

There are 1 best solutions below

0
On

we finally have solved our problem : we created in the cond.d directory (/etc/php/7.3/apache2/conf.d) a new ini file (30-custom-php.ini) and added the two following lines :

max_input_vars = 5000
upload_max_filesize = 256M

Hope this will help other people facing the same problem.

Jean-Paul