Applicable to:
- Plesk for Linux
Symptoms
-
Websites on Plesk server are slow or not available, sending emails via PHP script fails with:
CONFIG_TEXT: 500 Internal server error
-
Domains > exemple.com > Logs or
/var/www/vhosts/example.com/logs/error_log
show:CONFIG_TEXT: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://www.example.com/index.php
Cause
The connection is being reset due to the FcgidMaxRequestsPerProcess
limit has been reached. The parameter was previously defined in the web configuration:
-
On RedHat/CentOS/CloudLinux:
# grep FcgidMaxRequestsPerProcess /etc/httpd/conf.d/fcgid.conf /var/www/vhosts/system/example.com/conf/vhost.conf /var/www/vhosts/system/example.com/conf/httpd.conf
-
On Ubuntu/Debian:
# grep FcgidMaxRequestsPerProcess /etc/apache2/mods-enabled/fcgid.conf /var/www/vhosts/system/example.com/conf/vhost.conf /var/www/vhosts/system/example.com/conf/httpd.conf
Resolution
-
Go to Domains > example.com > Apache & nginx Settings > Additional Apache directives.
-
Increase the
FcgidMaxRequestsPerProcess
parameter value in Additional directives for HTTP and Additional directives for HTTPS fields:CONFIG_TEXT: <IfModule mod_fcgid.c>
FcgidMaxRequestsPerProcess 500
</IfModule>
-
Connect to the server via SSH.
-
Open
/etc/httpd/conf.d/fcgid.conf
(on RedHat/CentOS/CloudLinux) or/etc/apache2/mods-enabled/fcgid.conf
(on Ubuntu/Debian) using "vi"; -
Increase the value of
FcgidMaxRequestsPerProcess
parameter, e.g. to 500:CONFIG_TEXT: <IfModule mod_fcgid.c>
FcgidMaxRequestsPerProcess 500
</IfModule> -
Reload Apache configuration:
-
On RedHat/CentOS/CloudLinux:
# systemctl reload httpd
-
On Ubuntu/Debian:
# systemctl reload apache2
-
-
If it does not help, set
FcgidOutputBufferSize 0
in the same configuration file and reload Apache again.
Comments
4 comments
Hello, i tried resolution 1, but second step resulted in command unknown. Also, problem is still there.,
Could you please check this?
log is below.
thanks
Hi!
In case Debian/Ubuntu is running on the server, run the following command:
# service apache2 reload
If it won't help, I recommend you creating a ticket so we can check the issue in details: https://support.plesk.com/hc/en-us
I have tried both solutions, but didn't work for me.
I have Plesk Onyx 17.0.17 and i have tried increasing with this parameters:
FcgidIOTimeout 1800
FcgidIdleTimeout 1800
FcgidMaxRequestsPerProcess 500
On PHP
set_time_limit(0);
ignore_user_abort(true);
But the PHP Script return error 500 after 1 minute...
Right after that i can see this on the logs:
[fcgid:warn] [pid 29685] (32)Broken pipe: [client xxx.xxx.xxx.xxx:yyyyy] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
@Leandro Ferrero
Hi!
As the error appears after 1 minute, it seems the specified limits are not used.
Make sure you have restarted Apache:
# service httpd reload
or
# service apache2 reload
In case the issue persists, consider contacting Plesk Support.
Please sign in to leave a comment.