Run an old version of PHP (5.2) through FCGI
<p>On a development machine (running Ubuntu 11.10, PHP 5.3.6) I have to install PHP 5.2. I compiled nginx and configured it to look for a fcgi process on <code>localhost:9000</code> for PHP files. The nginx part works: it prints its <code>index.html</code> and if you request <code>index.php</code> tries to connect to the fcgi process but there is nothing running.</p>

<p>Here is how I configure PHP 5.2: <code>--prefix=$dir</code> and <code>--enable-fastcgi</code>: Then I install <code>libfcgi-dev</code> and launch the build: <code>make</code> exits without any error.</p>

<p>Then I try to launch the executable: <code>$dir/bin/php-cgi -b localhost:9000</code>: the process starts (I can see through <code>ps</code> its status: S+) so everything seems ok, except that <strong>it does nothing</strong> when someone connects to: connection refused. To me, this means that it's not listening at all. Since no error message is printed anywhere, how can I debug this situation and finally get a working FCGI php?</p>
