Apr 25

"request length exceeds MaxRequestLen" with Apache2 on Debian Squeeze

Category: Linux   — Published by goeszen on April 25, 2012 at 4:40 pm

If you see an error in your Apache2 logs "mod_fcgid: HTTP request length 131198 (so far) exceeds MaxRequestLen (131072)"

The defaults for fcgi have changed from Lenny (was 1GB) to Squeeze (is now 128KB)

Solution is:
Go to /etc/apache2/mods-available/fcgid.conf
and add (here for 2GB):

<IfModule mod_fcgid.c>
# 2GB
FcgidMaxRequestLen 2147483648


Simple byte calculator

Leave a Reply