• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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