昨天新上架的机器,今天上环境,环境为:linux+nginx+php,前边的安装都相差不是太多,这次用的php是5.3.4的,这个集成了php-fpm 只需要编译的时候开启php-fpm就可以了,不用再打补丁了。特此记录php-5.3.4安装

解压:tar zxvf php-5.3.4.tar.gz
cd php-5.3.4
预编译
#./configure --enable-fpm --enable-cgi --prefix=/usr/local/webserver/php --with-mysql=/usr/local/webserver/mysql/ --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap

make ZEND_EXTRA_LIBS='-liconv'

make install

[root@localhost php-5.3.4]# cp php.ini-production /usr/local/webserver/php/etc/php.ini