Applicable to:
- Plesk for Linux
Symptoms
-
When logging in to Plesk, Plesk login page is returned in a web browser without any errors or warnings.
-
When uploading a file via Plesk File Manager, one of the following error messages appears:
PLESK_ERROR: The file "picture.jpg" is too big. Try to upload this file via FTP.
PLESK_ERROR: No upload response
-
Extension update fails:
PLESK_INFO: An error has occurred uploading this file to the server.
The maximum allowed size of PHP to upload files is too low: This is configured from the PHP directives 'upload_max_filesize' and 'post_max_size' (locatable and configurable in your file 'php.ini' or '.htaccess').
Unable to find the installation package -
In some cases, the following error messages is logged in
/usr/local/psa/admin/logs/panel.log
:CONFIG_TEXT: PHP Warning: POST Content-Length of 90378782 bytes exceeds the limit of 67108864 bytes in Unknown on line 0
ERR (3) [panel]: Forgery protection token check failed.
ERR (3) [panel]: Permission denied.#0
Cause
Low values of directives post_max_size
and upload_max_filesize
are specified in Plesk php.ini
.
Resolution
-
Connect to your Plesk server via SSH.
-
Open the file
/usr/local/psa/admin/conf/php.ini
in a text editor. In this example, we are using vi editor:# vi /usr/local/psa/admin/conf/php.ini
-
Specify higher limits for
post_max_size
andupload_max_file
directives in bytes:Note: The default value is 2147483647 (2GB):
CONFIG_TEXT: post_max_size = 2147483647
upload_max_filesize = 2147483647 -
Save the changes and close the file.
-
Restart Plesk services:
# service sw-cp-server restart && service sw-engine restart
-
Log out from Plesk and log in again to apply the changes.
Comments
0 comments
Please sign in to leave a comment.