When you get a 500 error in a webpage hosted on Debian Linux (6.0) with apache webserver and fastcgi, take a look into the apache error.log file. This can either be the global error.log or the error.log of the website where you got the error. If you find a error similar to this one:

[Fri Apr 10 15:18:05 2012] [warn] [client] mod_fcgid: HTTP request length 134926 (so far) exceeds MaxRequestLen (131072), referer: http://www.example.tld/administrator/index.php?option=com_installer

then the MaxRequestLen setting of mod_fccgid is too low. To fix that, edit the file /etc/apache2/mods-available/fcgid.conf

vi /etc/apache2/mods-available/fcgid.conf

and add or edit the line "MaxRequestLen 15728640" to set the Request Limit to 15MB. The resulting file should contain these settings:

 AddHandler fcgid-script .fcgi
 FcgidConnectTimeout 20
 MaxRequestLen 15728640

Save the changes and restart apache:

/etc/init.d/apache2 restart
Tagged on:     

8 thoughts on “Fix “HTTP request length 134926 (so far) exceeds MaxRequestLen” error on Debian Linux

  • May 11, 2012 at 5:45 pm

    Correct me if I am wrong but..

    I think you have a typo there, your actually bumping that to 150 meg?
    You have an extra zero tagged onto that:

    MaxRequestLen 157286400

    It should be

    MaxRequestLen 15728640

    • May 11, 2012 at 5:49 pm

      You’re right. I fixed that in the faq.

      • March 3, 2015 at 8:30 pm


        it solved my problem. i couldnt upload more than 100kb with opencart…tnx!!!!!!

  • May 22, 2012 at 3:59 pm

    This also happens on CentOS release 6.2 (Final), I just experienced the same effect.

  • August 22, 2013 at 4:14 pm

    I had this problem uploading images using Cartweaver 4 on CentOS 6.3 with ISPConfig3.

    fcgid.conf is located in:


    and of course to restart the web server you use:

    service httpd restart

    in this Linux distro

    Solved the problem for me thanks…

  • January 25, 2014 at 3:12 pm

    thanks you !

    it works great now 🙂

  • June 14, 2014 at 10:03 pm

    Thanks for this page, I fixed my site for being able to upload files to/via drupal, I kept on getting the error and had no clue but checking ./error.log gave me a string to google and pointed me here.

  • November 8, 2014 at 4:33 am

    Thank you for share. I have just solved my problem!


Leave a Reply

Your email address will not be published. Required fields are marked *