A PHP FastCGI Process manager can be a used to spawn php fastcgi server instances when you have configured your web server to pass php scripts to a FastCGI server .This can be used with web servers like Nginx and lighthttpd .
Download the patch file for your php version from http://php-fpm.anight.org/
Download your php version of choice from http://php.net
Heres what i did..remember that both these project are actively updated.So by the time you read this they have better versions available
cd /usr/local/src
wget http://php-fpm.anight.org/downloads/head/php-5.2.6-fpm-0.5.8.diff.gz
wget http://in.php.net/get/php-5.2.6.tar.bz2/from/us2.php.net/mirror
gzip -cd php-5.2.6-fpm-0.5.8.diff.gz | patch -d php-5.2.6 -p1
cd php-5.2.6
mkdir /usr/local/php
./configure –prefix=/usr/local/php –enable-fastcgi –enable-fpm –with-mcrypt –with-zlib –enable-mbstring –with-openssl –with-mysql –with-mysqli –with-gd –with-jpeg-dir –enable-gd-native-ttf –without-sqlite –disable-pdo –disable-reflection –with-curl –with-curlwrappers –enable-inline-optimization –disable-debug –disable-ipv6
make
make install
Please note that your ./configure script may produce error of missing libraries or header files.You must install these using your OS’s package manager. I use apt-cache search “the missing libs” to get this done easily
Posted under php
This post was written by Anoop Alias on August 11, 2008

test