Hi,
I just joined the forum and I would like to ask you guys to help my out with an Apache problem.
I'm trying to use APC with fcgi on a CentOS server but I'm having some problems.
The error is:
Code:
[Wed Dec 07 11:12:01 2011] [warn] [client xxx.xxx.xxx.xxx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Wed Dec 07 11:12:01 2011] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php
and is not on all the page, it just appears random, every now an then, when APC is on.
This is the fcgi config file:
Code:
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/run/mod_fcgid/sock
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidIdleTimeout 300
FcgidProcessLifeTime 10000
FcgidMaxProcesses 200
FcgidMaxProcessesPerClass 20
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 60
FcgidIOTimeout 60
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
FcgidMaxRequestLen 2000000000
# Sandro's Edit ;)
FcgidMaxRequestsPerProcess 10000
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 10000
</IfModule>
Do you have any suggestions?
Thanks