Linuxphp5.2.10升级到PHP5.3.29

成都这边的程序员要求把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


网站栏目:Linuxphp5.2.10升级到PHP5.3.29
URL链接:http://myzitong.com/article/jjgpjg.html