phpfastcgi源码编译安装:
rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm #安装epel源
yum install -y bzip2-devel libxml2-devel libcurl-devel libjpeg-devel libpng-devel freetype-devel libmcrypt-devel #安装依赖软件包
编译安装:
cd /usr/local/src && tar xf php-5.5.15.tar.gz && cd php-5.5.15
./configure --enable-fpm --with-mcrypt --enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql--with-mysqli --with-gd --with-jpeg-dir --with-freetype-dir=/usr/include/freetype2/freetype/ --prefix=/usr/local/php
make -j 2 && make install
cp php.ini-production /usr/local/php/lib/php.ini
cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
chkconfig --add php-fpm
chkconfig php-fpm on