Plesk

Unable to upload a large backup file or a database dump in Plesk: client intended to send too large body

Symptoms

Cause

Upload size limit which is set up in Plesk configuration has been exceeded by the operation.

Resolution

  1. Connect to the Plesk server via SSH.

  2. Open the file /etc/sw-cp-server/config in a text editor. In this example we use the vi editor:

    # vi /etc/sw-cp-server/config

  3. Increase the value of client_max_body_size to the size of the uploaded file:

    client_max_body_size 4096m;

  4. Save the changes and close the file.

  5. Restart the Plesk services:

    # service sw-cp-server restart && service sw-engine restart

  6. Retry the failed operation.
Exit mobile version