Article ID: 119831, created on Jan 27, 2014, last review on Feb 24, 2015

  • Applies to:
  • H-Sphere 3.6.3

Symptoms

The following error is present in Apache logs:

    mod_fcgid: HTTP request length 132004 (so far) exceeds MaxRequestLen (131072)  

Resolution

To increase MaxRequestLen:

  1. Create file fcgi.conf

    # touch /hsphere/local/config/httpd2/fcgi.conf
    

and Include it in /hsphere/local/config/httpd2/httpd.conf.tmpl.custom in place of fastcgi.conf.

See example below:

Before changes:

    <IfDefine FASTCGI>
       <IfModule fastcgi_module>
             FastCGIWrapper /hsphere/shared/apache2/bin/suexec
             Include /hsphere/local/config/httpd2/fastcgi.conf
       </IfModule>
    </IfDefine>

Should be changed:

    #<IfDefine FASTCGI>
       #<IfModule fastcgi_module>
       #     FastCGIWrapper /hsphere/shared/apache2/bin/suexec
       #     Include /hsphere/local/config/httpd2/fastcgi.conf
             Include /hsphere/local/config/httpd2/fcgi.conf
       #</IfModule>
    #</IfDefine>

In the fcgi.conf you should include values for fcgid module as well as content from fastcgi.conf.

fcgi.conf example:

<IfDefine FASTCGI>
      <IfModule fastcgi_module>
            FastCGIWrapper /hsphere/shared/apache2/bin/suexec
            FastCGIConfig -updateinterval 300 -singlethreshold 0 -multithreshold 50 -idle-timeout 30 -killinterval 300 -minprocesses 5 -maxclassprocesse
            FcgidMaxRequestsPerProcess 5000
            FcgidMaxRequestLen 13107200
            MaxRequestLen 13107200
      </IfModule>
</IfDefine>

    <IfDefine FCGID>
  <IfModule fcgid_module>
          FcgidMaxRequestLen 13107200
          MaxRequestLen 13107200
      </IfModule>
    </IfDefine>        

To apply changes and regenerate httpd.conf run:

    # /hsphere/shared/scripts/apache-restart

Read more information about customization in our H-Sphere Upgrade Guide

Search Words

mod_fcgid: HTTP request length 132004 (so far) exceeds MaxRequestLen (131072)

6b908665c0d1eca5bdd0141a32fd712a 6311ae17c1ee52b36e68aaf4ad066387 f213b9fa8759d57bee5d547445806fe7 2e39a5e5b1423cc126cf735bac076008

Email subscription for changes to this article
Save as PDF