Applicable to:
- Plesk for Linux
Symptoms
-
In an attempt to upload any file in Plesk > Domains > example.com > File Manager > Upload, the error below is shown:
PLESK_ERROR: 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 (K\M\G), for example:CONFIG_TEXT: post_max_size = 16M
upload_max_filesize = 16M
CONFIG_TEXT: post_max_size = 2G
upload_max_filesize = 2G
Cause
This is the Plesk bug with ID #PPP-33508 which is planned to be fixed in one of the future product updates.
Resolution
Until the bug will be fixed, apply the workaround below:
-
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:
CONFIG_TEXT: post_max_size = 16777216
upload_max_filesize = 16777216 - For 2 Gigabytes:
CONFIG_TEXT: post_max_size = 2147483647
upload_max_filesize = 2147483647
- For 16 Megabytes:
-
Restart
psa
service:# service psa restart
Comments
5 comments
We tested it and it doesn't work.
Hello warittha phattharawong
Please, let me know the size of file you've tried to upload and provide the output of the following commands:
cat /usr/local/psa/admin/conf/php.ini | grep post_max_size
cat /usr/local/psa/admin/conf/php.ini | grep upload_max_filesize
cat /usr/local/psa/admin/conf/php.ini | grep post_max_size
post_max_size = 2147483647
cat /usr/local/psa/admin/conf/php.ini | grep upload_max_filesize
upload_max_filesize = 2147483647
Still getting the error.
Hello Emil Cataranciuc
In this case and if the uploaded file is actually less than 2 Gbs, please, consider submitting a support request for the issue to be checked on our side.
Hi,
I tried and I got this :
([root@server ~]# /usr/local/psa/admin/conf/php.ini
-bash: /usr/local/psa/admin/conf/php.ini: Permission denied) .
Any idea ?
Please sign in to leave a comment.