Plesk

Unable to upload any file via domain File Manager after changing post_max_size and upload_max_filesize values: The file “Test.jpg” is too big. Try to upload this file via FTP

Symptoms

Cause

This is the Plesk bug with ID #PPPM-13226 which is planned to be fixed in one of the future product updates.

Resolution

Until the bug will be fixed, apply one of the solutions below: 

For RHEL based systems (CentOS/CloudLinux)

  1. Log into the sever via SSH.

  2. Using the vi text editor open the /usr/local/psa/admin/conf/php.ini file and set integer values as below:

    • For 16 Megabytes:

      post_max_size = 16777216
      upload_max_filesize = 16777216

    • For 2 Gigabytes:

      post_max_size = 2147483647
      upload_max_filesize = 2147483647

  3. Restart psa service:

    # service psa restart 

For Debian based systems (Ubuntu/Debian)

  1. Log into the sever via SSH.

  2. Using the vi text editor open the /opt/psa/admin/conf/php.ini file and set integer values as below:

    • For 16 Megabytes:

      post_max_size = 16777216
      upload_max_filesize = 16777216

    • For 2 Gigabytes:

      post_max_size = 2147483647
      upload_max_filesize = 2147483647

  3. Restart psa service:

    # service psa restart