User:Int 80h/files/php-fcgi

I retreived the script from some source on the internet. However it didn't work so well, so I changed it a bit, so it actually works.

php-fcgi
Obviously, this needs PHP compiled with FastCGI support. I suggest running this script manually, since it does not produce any pidfiles.

nginx
I noticed, that  should not be higher than 2, when using together with nginx.

This is a portion of nginx config file, that works in conjuctions with. First there needs to be an upstream directive:

Then, inside a "server" directive: "fastcgi_params" comes with the nginx package, and lies inside  when installed in Debian.