Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 02, 2025, 04:04 AM

Title: Can't upload large files over PHP in Plesk: HTTP request length exceeds
Post by: Suhitha on Dec 02, 2025, 04:04 AM
Question: Can't upload large files over PHP in Plesk: HTTP request length exceeds MaxRequestLen


Applicable to:



Symptoms

mod_fcgid: HTTP request length ... (so far) exceeds MaxRequestLen (1310720)

Cause

The Apache parameters FcgidMaxRequestLen and FcgidMaxRequestInMem have too low of a value for the file's size.


Resolution

Individual Domain
     
1.Log into Plesk

2.Go to Domains > example.com > Apache & Nginx settings

3.Add these lines to Additional directives for HTTP & HTTPS:

<IfModule mod_fcgid.c>
FcgidMaxRequestLen 1073741824
FcgidMaxRequestsPerProcess 100
FcgidProcessLifeTime 7200
FcgidIOTimeout 7200
FcgidMaxRequestInMem 1073741824
</IfModule>

All Domains

The following solution only works with FPM application served by Apache. For other handlers, use custom templates.

1.Connect to the server via SSH

Note: Contact the server administrator if there's no SSH access

2.Edit fcgid.conf:


3.Set the same value for FcgidMaxRequestLen and FcgidMaxRequestInMem in bytes. For example, 1073741824 for 1G.

4.Restart Apache:

Warning: Websites will be down for a short time while restarting Apache

For RHEL-based OS

# service httpd restart || service apache2 restart