使用apt-get的方法安装php无法安装补丁php-fpm,所以只好尝试编译安装,
首先下载解压并打补丁
wget http://php-fpm.org/downloads/php-5.2.13-fpm-0.5.14.diff.gz
wget http://mirrors.sohu.com/php/php-5.2.13.tar.gz
tar zxvf php-5.2.13.tar.gz
gzip -cd php-5.2.13-fpm-0.5.14.diff.gz | patch -d php-5.2.13 -p1
编译的参数
./configure --prefix=/usr/local/php-fcgi --enable-fastcgi --enable-fpm --enable-discard-path \
--enable-force-cgi-redirect --with-config-file-path=/usr/local/php-fcgi/etc --with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir \
--with-gd --with-zlib --with-libxml-dir --with-curl --with-curlwrappers --with-openssl --with-mhash --with-xmlrpc \
--with-mcrypt --with-ldap --with-ldap-sasl --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode \
--enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-zend-vm=GOTO \
--enable-mbregex --enable-mbstring --enable-gd-native-ttf --enable-ftp --enable-pcntl --enable-sockets \
--enable-zip --disable-debug --enable-pdo --with-pdo-mysql=/usr/local/mysql --with-sqlite --with-pdo-sqlite \
--disable-ipv6