After installing the panel ISPmanager Lite 5.126.2 with a trial license for 2 weeks (this is convenient, since during this time you can safely buy and activate the license), I ran into this error. In this case, php is configured in FastCGI mode .
When I try to start a web application, I get (in logs or in debug):
mod_fcgid: HTTP request length 132992 (so far) exceeds MaxRequestLen (131072), referer: http...
In the browser you can get a little informative message:
Error 500, Internal server error
Let’s return to the logs:
The 1st figure is always different and depends on the request from your application
The 2nd figure is 131072 – this is the default MaxRequestLen .
HTTP request request length 132992 (so far) exceeds MaxRequestLen (131072) indicates that your request has exceeded the default value
Hence decision will – increase this parameter.
Of course, you can insert it almost anywhere in the apache config file. It is possible in the settings of your host.
But best edit the configuration of the FastCGI module itself:
/etc/apache2/mods-available/fcgid.conf (if you have Debian, Ubuntu and their other derivatives)
/etc/httpd/conf.d/fcgid.conf (if you have CentOS, Fedora and the like)
To select the appropriate value for the MaxRequestLen parameter, look at your php.ini
upload_max_filesize = 2M
For this value, it is suitable: 2M = 2097152 bytes. Add it to your fcgid.conf file:
After that restart apache: