继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Linux php5.2.10升级到PHP5.3.29

慕尼黑5688855
关注TA
已关注
手记 238
粉丝 8
获赞 17

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


打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP