Php/mod_fcgid script terminating after 30 seconds

fastcgiPHP

I have the following issue :

When running a long-running php script (file upload) it timeouts after exactly 30 seconds of activity.

Bizzarely, it only occurs in certain cases – the one i know for sure is it always occurs when uploading a file using the stock android browser – android for chrome is ok.

The error in the apache log is :

(70014)End of file found: mod_fcgid: can't get data from http client

I have already increased every apache/fcgi/php setting that i know that are related to timeouts :

apache

Timeout 180

fcgi

FcgidIdleTimeout 9600
IPCCommTimeout 520
FcgidIOTimeout 520

php

max_execution_time = 360

Are there any other settings related to timeout that I am missing ?

Best Answer

had the same, had to pass timeout as a parameter in the config, like this:

FastCGIExternalServer /usr/local/bin/php-cgi -socket /tmp/php-fpm.sock -idle-timeout 60 -pass-header Authorization