How to Change max_file_uploads in Plesk 11

June 25, 2014

 In short, there is no way to change it in Plesk 11, but it can be easily done using SSH. See how...

There are a lot of articles explaining how you can do this, and tools that looks like they work, but actually they do not. We will talk about it later, but here is a solution:

  1. Find file /etc/php5/apache2/php.ini
  2. Change max_file_uploads 20 to whatever you need to (ex: max_file_uploads 100 if you need to upload 100 files)
  3. Reboot the server

After this steps you get max_file_uploads to the number you want it to be. (we also changed php.ini.saved_by_psa just in case Plesk decides to overwrite)

Here are a few things you probably noticed:

  1. In /usr/local/psa/admin/conf/php.ini max_file_uploads is set to 9999 (not sure why, but it does not reflect reality)
  2. If you do <? php_info() ?> you see that PP_CUSTOM_PHP_INI /var/www/vhosts/domain.com/etc/php.ini but there is no such file on the system (because Configuration File (php.ini) Path /etc/php5/apache2/php.ini)
  3. There is "additional directives" that supposed to write into php.ini, but do not work