Plesk

Unable to upload large files to website hosted on Plesk for Linux server: End of script output before headers

Symptoms

Cause

The directive LimitRequestBody is define in the Apache configuration, domain's Apache & nginx Settings, or in the file .htaccess.

The directive LimitRequestBody specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.

Resolution

For one domain

  1. Log into Plesk.

  2. Increase the value of the parameter LimitRequestBody where it specified:

    • in Apache directives: Domains > example.com > Apache & nginx Settings > Additional Apache directives:

    • in the file .htaccess: Domains > example.com > File Manager > .htaccess:

For all domains

  1. Connect to the server using SSH.

  2. Open the Apache configuration file for editing:

    • /etc/httpd/conf/httpd.conf on CentOS, RHEL, CloudLinux.
    • /etc/apache2/apache2.conf on Ubuntu and Debian.
  3. Increase the value of the parameter LimitRequestBody and save the file:

    LimitRequestBody 2147483647

  4. Restart Apache to apply the changes:

    • on CentOS, RHEL, CloudLinux:

      # service httpd reload

    • on Ubuntu and Debian:

      # service apache2 reload

Additional information

Apache HTTP Server - LimitRequestBody Directive

Exit mobile version