FastCGI Error

Hi

I’m having a major problem with a virtualmin / webmin setup and processing large scripts.

The site is very heavy on certains parts of the system, but does work ok when given enough time. If I disable FastCGI and move to mod_php the funcationlity does work, but other parts of the site suffer. When using FastCGI, everything works but I get:

[Thu Jul 21 07:02:04 2011] [warn] [client 86.156.228.121] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: https://.com/index.php/admin/system_convert_profile/run/id/11/key/7ab84112bfd6bbdbc646b1bceb95b0b9/
[Thu Jul 21 07:02:04 2011] [error] [client 86.156.228.121] Premature end of script headers: index.php, referer: https://.com/index.php/admin/system_convert_profile/run/id/11/key/7ab84112bfd6bbdbc646b1bceb95b0b9

I’ve tried as many different timeout settings as I can find… These error are sometime accompanied with Error 500 to the user, or stopped output.

Any thoughts would be much appreciated, this is starting to cause me a major headache.

Stuart

Bit more informaiton, changing to mod_php with a very high timeout works, but not ideal. So I guess its a FastCGI timeout issue, but as far as I can see they are all up to the max already.

Also seems to happen randomonly on what I would call very small interaction with the site when processing a small script that call an API on the site.

Any thoughts??? Anybody?

is desperate

Stu

A few thoughts, speaking of “timeout issues”, that might help.

The parameters for mod_fcgid are listed here: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

In fast-cgi mode, PHP uses the INI file in /home/HOMEDIR/etc/php5/php.ini. There are “maximum execution time” and related parameters there, maybe changing them helps.

Thanks, I’ll have a go at that, and come back to you

Stuart