温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Linux php5.2.10升级到PHP5.3.29

发布时间:2020-07-14 10:54:17 来源:网络 阅读:968 作者:莎吧啦 栏目:web开发

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


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI