• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Increase the client_max_body_size

Individuum92

New Pleskian
Server operating system version
Ubuntu 20.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.46
Hey guys,

I try to migrate a WP site. For this, I'am using the WP all in one tool.
When I try to import the site, the import stucks.
Error log in PHP says:

Code:
682780#0: *1 client intended to send too large body: 195799558 bytes

It seems like the filesize is too large. How can I increase the limit? I already increased the PHP limits memory_limit, max_execution_time, max_input_time, post_max_size and upload_max_filesize.

Anyone an idea?
Thanks!
 
It seems that the upload size limit, which is set up in the Plesk configuration, has been exceeded by the operation.
  1. Open the file /etc/sw-cp-server/config in a text editor:
    Code:
    # vi /etc/sw-cp-server/config
  2. Increase the value of client_max_body_size to the size of the uploaded file:
    Code:
    client_max_body_size 4096m;
  3. Save the changes and close the file.
  4. Restart the Plesk services:
    Code:
    # service sw-cp-server restart && service sw-engine restart
  5. Retry the failed operation.
 
Try to edit the additional domain's config file /etc/nginx/conf.d/example.com.conf by adding client_max_body_size 256m; to the server block.
 
Contact Plesk Support Team in this case.

 
I think like @IgorG said
in #2
but not in sw-cp-server/sw-engine, but in Nginx that serves the websites.

Instead, add into httpd { } section of /etc/nginx/nginx.conf:
Code:
client_max_body_size 4G;

And add to /usr/local/psa/admin/conf/panel.ini:
Code:
[webserver]

nginxClientMaxBodySize =
(It is correct and required, that the equal sign is not followed by any value.)
I don't recall whether you need to
# service psa restart
afterwards, maybe you do.
 
Back
Top