Unable to upload file which size is larger than master value of upload_max_filesize

Created:

2016-11-16 12:58:33 UTC

Modified:

2017-04-24 11:20:40 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to upload file which size is larger than master value of upload_max_filesize

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows

Symptoms

PHP limits post_max_size and upload_max_filesize are set to 50Mb for subscription at Domains -> example.com -> PHP settings *. Php configuration file "%plesk_dir%"\Additional\PleskPHP54\php.ini** contains the following sets:

post_max_size = 20M
upload_max_filesize = 20M

As a result, it is not possible to upload file which size is larger than 20Mb.

Cause

Mentioned PHP settings for the domain does not override Plesk settings in "%plesk_dir%"\Additional\ \php.ini .

This is Plesk internal issue with id #PPPM-2898 , which is planned to be fixed in future Plesk updates.

Workaround

  1. Create .user.ini file in DocumentRoot folder of the domain:

    notepad %plesk_vhosts%\\example.com\\httpdocs\\.user.ini
  2. Specify the following settings in user.ini :

    post_max_size = 50M
    upload_max_filesize = 50M
  3. Restart IIS to apply the settings above

    iisreset /restart
Have more questions? Submit a request
Please sign in to leave a comment.