wordpress / apache / mod_fcgid - Error: HTTP ... exceeds MaxRequestLen

problem: MaxRequestLen value

solution:

in webserver log we see:
[Fri Oct 08 22:34:02.638818 2021] [fcgid:warn] [pid 877745] [client 92.117.179.218:55725] mod_fcgid: HTTP request length 137683 (so far) exceeds MaxRequestLen (131072), referer: https://www.mysite.com/wp-admin/upload.php


(1): global config for fcgid module:
>> add line " FcgidMaxRequestLen 8388608" to file:

/etc/apache2/mods-enabled/fcgid.conf

>> so that it looks like this:

<IfModule mod_fcgid.c>
FcgidConnectTimeout 20
FcgidMaxRequestLen 8388608
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>



(2) second aproach that could help to set the value only for one domain
>> in apache vhost settings, put:
<IfModule mod_fcgid.c>
FcgidMaxRequestLen 8388608
</IfModule>

computer2know :: thank you for your visit :: have a nice day :: © 2024