[php]代码库
wget http://www.php.net/get/php-5.3.6.tar.gz/from/this/mirror
tar xzvf php-5.3.6.tar.gz
cd php-5.3.6
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm
make && make install
cp php.ini-production /usr/local/php/etc/php.ini
# rpm -qa |grep libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12
[root@nowamagic ~]# /usr/local/php/sbin/php-fpm
[05-Oct-2013 12:09:26] ALERT: [pool www] pm.min_spare_servers(0) must be a positive value
[05-Oct-2013 12:09:26] ERROR: failed to post process the configuration
cd /usr/local/php/etc/
cp php-fpm.conf.default php-fpm.conf
vim php-fpm.conf
[root@nowamagic ~]# sed -i 's/;pm.max_spare_servers = 35/pm.max_spare_servers = 35/g' /usr/local/php/etc/php-fpm.conf
[root@nowamagic ~]# /usr/local/php/sbin/php-fpm
[05-Oct-2013 12:13:51] WARNING: [pool www] pm.start_servers is not set. It's been set to 20.
[root@nowamagic ~]# sed -i 's/;pm.start_servers = 20/pm.start_servers = 20/g' /usr/local/php/etc/php-fpm.conf
[root@nowamagic ~]# /usr/local/php/sbin/php-fpm
[05-Oct-2013 12:14:09] ERROR: bind() for address '127.0.0.1:9000' failed: Address already in use (98)
netstat -ntlp | grep 9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 14096/php-fpm