• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Problems overwriting FcgidMaxRequestLen

AdrianC

Basic Pleskian
I was trying to upload a file, around 32 MB and it stopped with server error in browser.
The domain error_log says:

mod_fcgid: HTTP request length 134219410 (so far) exceeds MaxRequestLen (134217728)

I tried:

- set FcgidMaxRequestLen 300000000 inside /etc/httpd/conf.d/fcgid.conf
- restarted httpd
- tried reconfigure with: /usr/local/psa/admin/bin/httpdmng --reconfigure-all

The error remained and it is set to 134217728 in these two files:

/etc/httpd/conf/plesk.conf.d/vhosts/[MY DOMAIN].conf
/var/www/vhosts/system/[MY DOMAIN]/conf/httpd.conf

It works if I manually edit the two above files, BUT ...

Isn't the correct way to set this limit in fcgid.conf ? If so, why doesn't that work ?
 
Hi @AdrianC

This is set in the templates, to override...

You can set this at the domain level, in...

Plesk -> Domains -> domain.tld -> Apache & Nginx settings -> Additional directives for HTTP & HTTPS

As an example...

Code:
<IfModule mod_fcgid.c>
    FcgidMaxRequestLen 1073741824
    FcgidMaxRequestsPerProcess 100
    FcgidProcessLifeTime 7200
</IfModule>

I hope that helps
Regards

Lloyd
 
Hi AdrianC,

please be informed, that configuration files are based on templates located at "/usr/local/psa/admin/conf/templates/default/".

If you would like to modify the templates, you would copy one of the depending template(s) to a "custom" - folder, edit it there to your needs and recreate the configuration files again with your modified settings.
Please see:

The templates with the mentioned setting for "FcgidMaxRequestLen" are found in "domainVirtualHost.php", "horde.php" and "roundcube.php".
 
Last edited by a moderator:
Thanks for the replies.
I find it very counter intuitive; the newer the panel gets, the more configuration files that overwrite one another :(
This FcgidMaxRequestLen limit for example is set in:

- template file you mentioned
- /etc/httpd/conf.d/fcgid.conf
- /etc/httpd/conf/plesk.conf.d/vhosts/[MY DOMAIN].conf
- /var/www/vhosts/system/[MY DOMAIN]/conf/httpd.conf
 
Hi AdrianC,

these configuration files take their settings from the templates, as mentioned above. Even if you manually change this in the configuration files itself, Plesk might overwrite your manual settings in case of recreation procedures. Using the command "/usr/local/psa/admin/bin/httpdmng --reconfigure-all" will always create new configuration files, based on the templates, but you may experience recreation procedures as well in case of updates/upgrades/patches, or when domain - settings, or webserver settings are done over Plesk.

/etc/httpd/conf.d/fcgid.conf
=> basic webserver configuration file. Please be aware, that these settings may be overwritten by domain specific configuration files.

/etc/httpd/conf/plesk.conf.d/vhosts/[MY DOMAIN].conf
=> Symlink(s) to the domain specific configuration file(s), located at....

/var/www/vhosts/system/[MY DOMAIN]/conf/httpd.conf
=> domain specific configuration file.​

This structure ( configuration based on templates / general webserver configuration files / domain - specific configuration files ) is only different to any webserver without Plesk, that Plesk uses templates and/or stored entries in the psa - database, to make creations possible with only a few clicks over the Plesk Control Panel. All other configuration files will be found for every webserver all over the world and are standards. :)
 
Actually now I remembered that the first lines of the created files show a warning not to edit the files because are created automatically, so if I remember this part and only edit the template file or inside the panel interface then things look simpler already :)
Thanks.
 
Back
Top