成都这边的程序员要求把PHP从5.2.10版本升级到5.3.29版本。
#cd /Data/App_php/
#wget http://cn2.php.net/get/php-5.3.29.tar.gz/from/this/mirror
#tar -zxvf php-5.3.29.tar.gz
#cd php-5.3.29
#./configure --prefix=/Data/App_php/php-5.3 --sysconfdir=/Data/App_php/php-5.3/etc --disable-debug --with-bz2 --with-curl --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-gd=shared --enable-gd-native-ttf --with-t1lib=/usr --with-gettext --with-gmp --enable-mbstring=shared --with-openssl --with-pspell --with-zlib --with-system-tzdata --with-mysqli=shared,/usr/bin/mysql_config --enable-soap=shared --with-pdo-mysql=shared,/usr --enable-json=shared --enable-zip=shared --with-mcrypt=shared,/usr --with-mysql=shared,/usr --with-mcrypt --enable-mbstring --disable-rpath --enable-inline-optimization --with-xml --with-dom --with-xmlrpc --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-xslt --enable-memcache --enable-zip --with-pcre-regex --with-mysql=/usr --with-gd --with-jpeg-dir --with-png-dir --with-config-file-path=/Data/App_php/php-5.3/etc --enable-force-cgi-redirect --with-config-file-scan-dir=/Data/App_php/php-5.3/etc/php.d --with-libdir=lib64 --enable-fastcgi --enable-fpm
#make && make install
#/Data/App_php/php-5.3/sbin/php-fpm
# cd /Data/App_php/php-5.3/etc
# cp php-fpm.conf.default php-fpm.conf
启动新安装的PHP5.3.29
方法1:
#/Data/App_php/php-5.3/sbin/php-fpm
方法2:
#/Data/App_php/php-5.3/sbin/php-fpm --fpm --fpm-config/Data/App_php/php-5.3/etc/php-fpm.conf
原文地址:http://songlisha.blog.51cto.com/6269280/1617306