Board logo

标题: [提问] v3是php5.6.21如何升级到5.6.29版本? [打印本页]

作者: qwnet    时间: 2016-12-22 06:49     标题: v3是php5.6.21如何升级到5.6.29版本?

v3是php5.6.21如何升级到5.6.29版本?
作者: shitsui    时间: 2016-12-22 10:12

直接下载PHP5.6.29重新编译安装,步骤如下:
[root@localhost ~] cd /tmp
[root@localhost tmp] wget -c http://dl.wdlinux.cn:5180/soft/php-5.6.29.tar.gz
[root@localhost tmp] tar zxvf php-5.6.29.tar.gz
[root@localhost tmp] cd php-5.6.29
[root@localhost tmp] ./configure --prefix=/www/wdlinux/php-5.6.29 \
--with-config-file-path=/www/wdlinux/etc --with-mysql=/www/wdlinux/mysql \
--with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir \
--with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath \
--enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr \
--with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp \
--with-apxs2=/www/wdlinux/apache/bin/apxs
[root@localhost tmp] make
[root@localhost tmp] make install
[root@localhost tmp] rm -f /www/wdlinx/php
[root@localhost tmp] ln -s /www/wdlinux/php-5.6.29 /www/wdlinux/php
[root@localhost tmp] systemctl restart httpd.service




欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2