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
localhost:9000 for PHP files. The nginx part works: it prints its
index.html and if you request
index.php tries to connect to the fcgi process but there is nothing running.
Here is how I configure PHP 5.2:
--enable-fastcgi: Then I install
libfcgi-dev and launch the build:
make exits without any error.
Then I try to launch the executable:
$dir/bin/php-cgi -b localhost:9000: the process starts (I can see through
ps its status: S+) so everything seems ok, except that it does nothing 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?