[fix] mod_fcgid: HTTP request length xyz (so far) exceeds MaxRequestLen (131072)

I found this post after way too much time trying to solve the problem on my own. http://blog.philippklaus.de/2011/04/fix-mod_fcgid-http-request-length-xyz-so-far-exceeds-maxrequestlen-131072/ It occurs when uploading a file that is too large. The solution...

I found this post after way too much time trying to solve the problem on my own.

http://blog.philippklaus.de/2011/04/fix-mod_fcgid-http-request-length-xyz-so-far-exceeds-maxrequestlen-131072/

It occurs when uploading a file that is too large. The solution is to set MaxRequestLen to a larger value.

Edit the apache2 fcgid module configuration file fcgid.conf using vi /etc/apache2/mods-available/fcgid.conf and change the content from

<ifmodule mod_fcgid.c>
AddHandler fcgid-script .fcgi
FcgidConnectTimeout 20
</ifmodule>

<ifmodule mod_fcgid.c>
AddHandler fcgid-script .fcgi
FcgidConnectTimeout 20
# to get around upload errors when uploading images increase the MaxRequestLen size to 15MB
MaxRequestLen 15728640
</ifmodule>

About Aaron Bocanegra

Aaron Bocanegra is the owner of Whatartist - an Interaction Design, Photography and Video studio. He received his BFA in Fine Art Photography at the Rochester Institute of Technology and his MFA in Graduate Art Studies at the Art Center College of Design. He is interested in flowing between aesthetic and technology to solve creative problems and design complex systems.