- Plesk for Linux
- A website is not loading and "500 internal server error" is being shown after ~30-60 seconds.
The following error can be observed in the domain error log
CONFIG_TEXT: [warn] mod_fcgid: read data timeout in 45 seconds, referer: http://www.example.com/admin/orders.php
[error] Premature end of script headers: PDF.php, referer: http://www.example.com/admin/orders.php
The following error can be found in
CONFIG_TEXT: [warn] mod_fcgid: process 16576 graceful kill fail, sending SIGKILL
The following error is produced in /var/www/vhosts/system/example.com/logs/proxy_error_log:
CONFIG_TEXT: connect() failed (111: Connection refused) while connecting to upstream
The FcgidIOTimeout value - the maximum period of time the module will wait while trying to read from or write to a FastCGI application - has been exceeded.
Increase the parameter value or optimize FastCGI application.
parameter for a domain is set to the same value as
- Log into Plesk UI.
- Set "max_execution_time" to "120" in Plesk > Domains > example.com > PHP settings
Add the following to Plesk > Domains > example.com > Apache & Nginx settings > Additional directives for HTTP and Additional directives for HTTPS:
CONFIG_TEXT: <IfModule mod_fcgid.c>
If it does not help, increase the parameter value.
Optionally, switch the domain to FPM handler at Domains > example.com > PHP Settings.