安装PHP5.5
class="java">
#wget http://am1.php.net/get/php-5.5.6.tar.gz/from/this/mirror /tmp/software/ 下载地址
#cd /tmp/software
#tar zxvf php-5.5.6.tar.gz
#cd php-5.5.6
#./configure --prefix=/usr/local/php5.5 --enable-fpm //注意指定prefix
#make && make install
#cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm-55 //启动脚本
#chmod +x /etc/init.d/php-fpm-55
#cd /usr/local/php5.5
#cp etc/php-fpm-conf.default etc/php-fpm.conf //配置文件
#cp /tmp/software/php-5.5.6/php.ini-development /usr/local/php5.5/lib/php.ini
如果出现如下错误
Starting php-fpm [09-Dec-2013 22:23:16] ERROR: [pool www] cannot get gid for group 'nobody'
将nobody group 改成nogroup
#vim etc/php-fpm.conf group=nobody -> group=nogroup
#/etc/init.d/php-fpm-55 start
#/usr/local/php5.5/bin/php -v
类似方式安装PHP5.4, PHP5.3等等