• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

MaxRequestLen Issue

Petrou Net

Basic Pleskian
I'm not sure if Plesk upgrade to 10.3.1 is responsible for this issue, but it started occurring after a server was upgraded to Plesk 10.3.1.

Product: Parallels Plesk Panel Linux 10.3.1, version: psa v10.3.1_build1013110726.09 os_CentOS 5
Operating System: CentOS 5 i386. Kernel: 2.6.18-194.26.1.el5PAE
Architecture: i386

Problem Description:
When using PHP as FastCGI, if you try to upload a file larger than 128KB, an error "mod_fcgid: HTTP request length 131388 (so far) exceeds MaxRequestLen (131072)" occurs and causes an 550 internal server error.

Steps to reproduce:
1. Set PHP to run as FastCGI
2. Try to upload a file larger than 128KB using any PHP upload script.


Actual Results:
When using PHP as FastCGI, if you try to upload a file larger than 128KB, an error "mod_fcgid: HTTP request length 131388 (so far) exceeds MaxRequestLen (131072)" occurs and causes an 550 internal server error.
This happens because the value of MaxRequestLen directive is set to 131072 bytes (128KB) by default.
One way to correct this, is to edit /etc/httpd/conf.d/fcgid.conf and set MaxRequestLen to a higher value, for example 15MB (MaxRequestLen 15728640)


Expected Results:
MaxRequestLen should have been set to a higher value from the beginning to avoid such issues, 128KB is too low.

Additional Information:
This issue started occurring when a server was upgraded to Plesk 10.3.1.
 
Developers have informed me that Plesk does not set ​MaxRequestLen to any value.
 
Developers have informed me that Plesk does not set ​MaxRequestLen to any value.
Thank you for the update IgorG,
We investigated the issue some more and we found out that the file /etc/httpd/conf.d/fcgid.conf belongs to the package psa-mod_fcgid-2.3.6-11062118.i386. According http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html , before the version 2.3.6 of this module, the default value of ​MaxRequestLen was 1GB, but since the 2.3.6 version, the default value of ​MaxRequestLen was changed to 128KB and that most likely caused the issue.
Therefore it seems Plesk is not directly responsible for this issue (mod_fcgid is) but since Parallels is using mod_fcgid in their package psa-mod_fcgid-2.3.6-11062118.i386, perhaps your developers might want to check and find a solution for this.
 
Last edited:
I can confirm this, also on CentOS 5, and also agree that, since plesk does not yet set this value, it should start doing so.

Best,

Max
 
Hey,

I believe to have the same issue with an ubuntu install after upgrading to 10.3.1 .
Where can i update this or change this settings?

Thx in advance,

Maarten
 
Solution:

FcgidMaxRequestLen -->This is causing the problem. Before updating to the newest version, it was default set to 1gb. Now it is 128kb. Add the following to the file /etc/apache2/conf.d/fcgid.conf :

FcgidMaxRequestLen 1073741824

This wil give you a limit of 1gb. Next, restart your apache.
 
I have this problem as well, using ubuntu 10.03, I dont have a /etc/apache2/conf.d/fcgid.conf file... nor at any other location for that matter. can I add the line to the php.ini file?
 
I experienced the same problem on my Ubuntu 10.04 server after upgrading Plesk to 10.3.1. It took a while to figure out it was caused by this particular setting.

Now I made the following change in the following file:
/etc/apache2/mods-available/fcgid.conf.

Almost on the end after the last row of Fcgi commands and before the </IfModule> just add:
Code:
FcgidMaxRequestLen 1073741824
 
Last edited:
Setting this to 1gig did work for me. We recently upgraded to Plesk 10.4.4 I believe this should be the default. Thanks for posting this; it was of great help
 
Where's that file?

I, too, upgraded to 10.4.4 and noticed the same problem.
Cannot seem to locate this file either.
Running Linux 2.6.18-028stab069.6 on CentOs.
What am I missing here? Can't seem to find an apache2 folder at all.
 
Never mind.
We found the folder here: /etc/httpd/conf.d/fcgid.conf

Thanks for posting this everyone!
 
Good point.

The fact that I just upgraded to 10.4.4 two weeks indicates that the dev team still has yet to implement a fix for this in the latest versions. Though, it could be said that a "fix" is not necessary for everyone.

Thanks for pointing out that the file could be ( and might be ) overridden with future upgrades. Will put it on my list of things to check.
 
I'm afraid that file could be overwritten by a Plesk upgrade and then you would lose your customizations.
Can anyone confirm that?
Yes, that's exactly what happens, iirc we even had a support ticket opened for this with Parallels. Their packagers should delve more into the rpm manuals and best practice guidelines and learn how/when to use directives like %config(noreplace)
 
I can confirm that config was overwritten. Yesterday i did upgrade and today found error about MaxRequestLen (131072). Until upgrade was OK.
 
As possible workaround, MaxRequestLen can be defined in /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
 
FcgidMaxRequestLen 1073741824

This solved the problem as we had the same issue with our plesk server our version 10.4.4
 
Still can't find /etc/httpd/conf.d/fcgid.conf

Hi all,

I have this same problem and I need to edit "fcgid.conf"

but all I have in my "etc" directory is my php.ini file. Nothing else!

Where would my fcgid.conf file be?

I'm using:

Parallels Plesk Panel v10.4.4 os_Ubuntu 10.04

and

Linux 2.6.32-40-generic

Please help!
 
Thank you mettteV!!!

mettteV
Thank you so so much! This fixed my GoDaddy Virtual Dedicated after months of looking and changing settings in the control panel and such. Thank you Thank you works great!
 
Back
Top