Symptoms
-
In an attempt to upload any file in Plesk > Domains > example.com > File Manager > Upload, the error below is shown:
The file "Test.jpg" is too big. Try to upload this file via FTP.
-
Values for PHP parameters
post_max_size
andupload_max_filesize
in/usr/local/psa/admin/conf/php.ini
file are set with shorthand notations (KMG), for example:post_max_size = 16M
upload_max_filesize = 16M
post_max_size = 2G
upload_max_filesize = 2G
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)
-
Log into the sever via SSH.
-
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
- For 16 Megabytes:
-
Restart
psa
service:# service psa restart
For Debian based systems (Ubuntu/Debian)
-
Log into the sever via SSH.
-
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
- For 16 Megabytes:
-
Restart
psa
service:# service psa restart