• 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

FastCGI in Plesk 11/CentOS 6.3 - Timeout issues

Gary.B

New Pleskian
PHP support is currently set to: run as Fast CGI.

I keep getting these errors in my server log:
mod_fcgid: read data timeout in 45 seconds
Premature end of script headers: index.php

Should be quick fix I think, but I cant find the file to edit. Is this something I can change from Plesk.
Anyone know how to increase the timeout?
 
/etc/httpd/conf.d/fcgid.conf
This file does not exist on my server

I have three files inside etc folder: group, password and php.ini

In Plesk, I went into Website & Domain > File Manager to create folder httpd, I get this:
Error: Unable to create directory /etc/httpd: filemng: Error occurred during /bin/mkdir command.
 
Last edited:
FYI on Ubuntu (and probably possible other debian based distro's) the configuration is in /etc/apache2/mods-available/fcgid.conf

I changed FcgidIOTimeout to 120 there. 45 seconds was too small for a few specific export scripts and some other, 120 seems fine here. Personally don't care much for the shotgun approach by setting it to 1 or 2 hours (besides - PHP execution time limit will kick in way before that) - 1 script running for 1 or 2 hours is not accepted here anyways. But whatever value that exceeds the time it needs to run should suffice. I'd add a bit for cases where the server might be busy with other stuff too.
 
Back
Top