Apache: mod_fcgid: read data timeout in 40 seconds

Автор: | 03/10/2014

apache_logo-newИмеется Apache + mod_fcgid.

При выполнении некоторых операций – в логе появились строки:

[Tue Sep 23 12:52:54 2014] [warn] [client 37.***.***.56] mod_fcgid: read data timeout in 40 seconds, referer: http://rtfm.co.ua/
[Tue Sep 23 12:52:54 2014] [error] [client 37.***.***.56] Premature end of script headers: post.php, referer: http://rtfm.co.ua/

Решение – отредактировать файл /etc/httpd/conf.d/fcgid.conf, в который добавить параметр:

IPCCommTimeout 300

 This is the maximum period of time the module will wait while trying to read from or write to a FastCGI application.

Подробнее об этом и других параметрах FastCGI – смотрите тут>>>.