FastCGIExternalServer demystified

« 1 2 3 4 5 6 7 8 9View All»

Ok, before we start I should mention what I’m using:

How to compile PHP as an FastCGI server is left as an exercise to the reader. Actually, mostz of the times it’s really as simple as adding

--enable-fastcgi

to the configure command and making sure that

--enable-discard-path

is not on the list of your configure options.
Compiling

mod_fastcgi

is straight forward and well documented, so it’s also not covered here.
Obviously you shouldn’t try the dollowing examples on a production machine. Ok, having all the mumbo-jumbo out of the way now, let’s begin.


Incoming search terms:

This entry was posted in PHP, Software, the ugly truth and tagged , , . Bookmark the permalink.

3 Responses to FastCGIExternalServer demystified

  1. Pingback: External FastCGI With Apache « IT Know-It-All

  2. Mattes says:

    Great article, but how did you solve the problem with the trailing index.php?
    If I call the domain, the php file are provided as a download.
    If I add index.php, I get redirected to /virtualpath/index.php/ which results in a 404. Everything else works like a charm…

  3. Stefan Rubner says:

    Can’t really say what the problem with your setup is. Either it’s a missing “DirectoryIndex index.php” statement in the htpd.conf file or your settings for calling the FCGI process are a bit borked. If you could post the settings for your vhost, maybe I could help more then.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>