Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a pretty vanilla setup with Apache2, FastCGI setup as DSO and serving PHP through an external CGI script that sets the max children / serves the request to PHP.

The issue is FastCGI doesn't appear to be creating the PHP sockets / pooling them so each request calls the php-cgi binary, then dies off .. effectively making the reason I want to use FastCGI moot.

The only configuration directives I have are:

AddHandler php5-fastcgi .php

Action php5-fastcgi /cgi-bin/fcgi.cgi

FastCgiIpcDir /usr/local/apache2/fastcgi

The dyanmic/ directory is getting created as anticipated, but there are no sockets in there. Permissions are indeed correct.

Any help would be greatly appreciated, thanks!

share|improve this question
Also to clarify a little further - I know I could technically spawn the sockets manually / use the ExternalFCGIServer directive, though this is not ideal for me. – CodyRo Nov 2 '09 at 16:56

Alright I figured out the issue. In the cgi-bin/ directory options I added:

SetHandler fastcgi-script

Apparently it didn't do that by default / I missed it somehow - hence why FCGI wasn't managing the threads / workers.

Hopefully this helps someone down the road!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.