Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.