Blog Archive for December 19, 2011

PHP on NGINX

December 19, 2011

I wanted to set up webmail on a Debian box running nginx, and the webmail software used PHP. To do this I used PHP as a fastcgi daemon and then proxied through to it from nginx.

PHP

First we install php:

apt-get install php5-cgi

We need to run php-fastcgi as …