php-fpm安装
1:下载最新版本:http://www.php.org
2:解压安装
tar -jxvf php-5.3.5.tar.bz2
cd php-5.3.5
./configure --prefix=/usr/local/php-fpm --enable-fpm
--enable-mbstring=all --enable-sockets --enable-ftp --enable-pcntl
--with-mysql=mysqlnd--with-pdo-mysql=mysqlnd --with-mcrypt
--with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd
--enable-gd-native-ttf --with-curl --with-zlib
make && make install
3:修改配置
cp php.ini-production /usr/local/php-fpm/lib/php.ini
cd /usr/local/php-fpm/etc/
cp php-fpm.conf.default php-fpm.conf