LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-09-2011, 08:30 AM   #1
sandrix
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
APC + Fcgi Causing problems on CentOS


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
 
Old 12-15-2011, 05:11 AM   #2
sandrix
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hey guys do you have any news on this?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos LAMP Server with unidentified script causing server to port scan ZS- Linux - Security 48 01-30-2011 07:27 AM
Problems with APC-PHP Extension littlened Linux - General 0 05-07-2010 04:05 AM
Is this causing any of my problems? zest n zeal Linux - Newbie 3 01-27-2009 09:10 AM
APC user cache with fcgi processes walidaly Linux - Server 0 07-21-2007 01:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration