Applicable to:
- Plesk for Linux
Symptoms
-
Unable to log in to Plesk: Plesk login page is returned in a 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
-
Cannot upload files in applications, e.g WordPress, Joomla, etc:
PLESK_INFO: The uploaded file exceeds the upload_max_filesize directive in php.ini
-
Extension update fails, e.g Joomla:
CONFIG_TEXT: 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 might appear 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
is specified either in Plesk php.ini
or in the domain settings.
Resolution
Change the necessary values
-
Connect to the server via SSH
-
Open the file
/usr/local/psa/admin/conf/php.ini
in a text editor and specify limits forpost_max_size
andupload_max_file
size in bytes.Note: The default value is 2147483647 (2GB):
# egrep 'post_max_size|upload_max_filesize' /usr/local/psa/admin/conf/php.ini
post_max_size = 2147483647
upload_max_filesize = 2147483647 -
Restart the
psa
service:# service psa restart
-
Log out from Plesk UI and Log in again to apply changes.
- Log into Plesk
- Go to Domains > example.com > PHP Settings
- Adjust
upload_max_filesize
andpost_max_size
values:
- Click the OK button
Comments
5 comments
This fix did'nt help. I have this message even if i try to upload small files (eg 1kb)
Hello @Laurent,
As I can see this issue is sometimes resolved by executing the following command, could you try to execute it:
Thanks it works!
hi
I cant edit
@Ayoub Fadil
Hi! To change those settings you need to contact your hosting provider and ask either to set the required values on their side or grant you permission to edit the settings on your side by modifying the service plan.
Please sign in to leave a comment.