WDCP processing methods that cannot be accessed after upgrading php5.8 to php7.1.12

Source: Internet
Author: User
Tags mcrypt zts

PHP7 Upgrade Scripts

update_php7.sh

#!/bin/bash# PHP7.1.2Update Scriptsif[ ! $1];thenver=7.1.2ElseVer=$1Fidebugfile=20121212Echo"THANK you to USING UPDATE SCRIPT made by Jason_xia"Echo"You is going to UPDATE YOUR PHP to ${ver}"Echo"You CAN JUST has A REST"Echo"IT may take A lot of time"Echo#read-P"Press ENTER IF you really want to UPDATE"Read-P"Do you really want to UPDATE? (y/n)"ynif["$yn"=="Y"] || ["$yn"=="y" ]; Thenecho"PHP is now updating!"ElseExitfiechoecho"-------------------------------------------------------------"echo## #yumyum Install-y libmcrypt-devel libjpeg-devel libpng-devel freetype-devel curl-devel openssl-devel libxml2-devel zip unzip###if[!-F php-${ver}.tar.gz];thenwget-C http://cn.php.net/distributions/php-${ver}.tar.gzfiif[ ! -F iconv_ins.sh];thenwget-C http://down.wdlinux.cn/in/iconv_ins.shSH iconv_ins.shfi###if[-f/www/wdlinux/mysql/lib/libmysqlclient.so. -];thenif[-d/usr/lib64];thenlibncu="/usr/lib64"ElseLibncu="/usr/lib"Filn-sf/www/wdlinux/mysql/lib/libmysqlclient.so. -$LIBNCUfitar zxvf php-${ver}.tar.gzcd PHP-${ver}if[-d/www/wdlinux/apache_php];thenecho"START Configuring PHP on NGINX"Sleep3Make clean ./configure--disable-fileinfo--prefix=/www/wdlinux/apache_php-${ver}--with-config-file-path=/www/wdlinux/apache _php-${ver}/etc--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--enable-sockets-- Enable-zip--with-apxs2=/www/wdlinux/apache/bin/apxs--with-mysqli=/www/wdlinux/mysql/bin/mysql_config-- With-pdo-mysql=/www/wdlinux/mysql--enable-opcache--enable-bcmath--with-mysql=mysqlnd--with-mysqli=mysqlnd-- With-pdo-mysql=mysqlnd[$? !=0] && Echo"no! CONFIGURE error! TRY AGAIN OR ASK in the bbs! :("&&Exitecho"START Make"Sleep3make[$? !=0] && Echo"no! Make error! TRY AGAIN OR ASK in the bbs! :("&&Exitecho"START make INSTALL"Sleep3Make install[$? !=0] && Echo"no! Make INSTALL error! TRY AGAIN OR ASK in the bbs! :("&&exitcp php.ini-production/www/wdlinux/apache_php-${ver}/etc/php.inised-I.'S/short_open_tag = Off/short_open_tag = on/g'/www/wdlinux/apache_php-${ver}/etc/php.inirm-f/www/wdlinux/APACHE_PHPLN-sf/www/wdlinux/apache_php-${ver}/www/wdlinux/apache_phpif[!-d/www/wdlinux/apache_php-${ver}/lib/php/Extensions];thenmkdir-p/www/wdlinux/apache_php-${ver}/lib/php/extensions/no-debug-zts-${debugfile}ln-sf/www/wdlinux/apache_php-${ver}/lib/php/extensions/no-debug-zts-${debugfile}/www/wdlinux/apache_php-${Ver}/ lib/php/extensions/no-debug-non-zts-${debugfile}fiservice httpd Restartfiif[-d/www/wdlinux/nginx_php];thenecho"START Configuring PHP on APACHE"Sleep3Make clean ./configure--disable-fileinfo--prefix=/www/wdlinux/nginx_php-${ver}--with-config-file-path=/www/wdlinux/nginx_ Php-${ver}/etc--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--enable-sockets-- Enable-zip--enable-fpm--with-mysqli=/www/wdlinux/mysql/bin/mysql_config--with-pdo-mysql=/www/wdlinux/mysql-- With-mysql=mysqlnd--with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd[$? !=0] && Echo"no! CONFIGURE error! TRY AGAIN OR ASK in the bbs! :("&&Exitecho"START Make"Sleep3make[$? !=0] && Echo"no! Make error! TRY AGAIN OR ASK in the bbs! :("&&Exitecho"START make INSTALL"Sleep3Make install[$? !=0] && Echo"no! Make INSTALL error! TRY AGAIN OR ASK in the bbs! :("&&exitcp php.ini-production/www/wdlinux/nginx_php-${ver}/etc/php.inised-I.'S/short_open_tag = Off/short_open_tag = on/g'/www/wdlinux/nginx_php-${ver}/etc/php.iniservice PHP-fpm STOPRM-f/www/wdlinux/NGINX_PHPLN-sf/www/wdlinux/nginx_php-${ver}/www/wdlinux/NGINX_PHPCP/www/wdlinux/nginx_php-${ver}/etc/php-fpm.conf.default/www/wdlinux/nginx_php-${ver}/etc/php-fpm.confsed-I.'S/user = Nobody/user = www/g'/www/wdlinux/nginx_php/etc/php-fpm.confsed-I.'S/group = Nobody/group = www/g'/www/wdlinux/nginx_php/etc/php-fpm.confsed-I.'s/;p ID =/pid =/g'/www/wdlinux/nginx_php/etc/php-FPM.CONFCP-F sapi/fpm/init.d.php-fpm/www/wdlinux/init.d/php-Fpmchmod755/www/wdlinux/init.d/php-FPMif[!-d/www/wdlinux/nginx_php-${ver}/lib/php/Extensions];thenmkdir-p/www/wdlinux/nginx_php-${ver}/lib/php/extensions/no-debug-zts-${debugfile}ln-sf/www/wdlinux/nginx_php-${ver}/lib/php/extensions/no-debug-zts-${debugfile}/www/wdlinux/nginx_php-${Ver}/lib /php/extensions/no-debug-non-zts-${debugfile}fificd. RM-RF php-${ver}/RM-RF php-${VER}.TAR.GZRM-RF Iconv_ins.shechoecho"---------------------www.itbulu.com-------------------------------------"Echo"PHP UPDATE finish!"Echo"Now YOUR PHP VERSION is ${ver}!"Echo"UPDATE SCRIPT made by Jason"Echo"THANK for USING"Echoecho"WDCP (C) COPYRIGHT"Echoecho"ps:i THINK You need RESTART SERVER after UPDATE."Echo"Ps2:remember to VISIT Jason"
Echo

SH update_php7.sh

WDCP processing methods that cannot be accessed after upgrading php5.8 to php7.1.12

vim/www/wdlinux/httpd-2.4. /conf//LoadModule php5_moduleloadmodule php5_module        modules/  Libphp5.soloadmodule php7_module        Modules/libphp7.so loadmodule php5_module comment out LoadModule php5_module        modules/libphp5.soloadmodule php7_module        modules/libphp7.so restart httpd Services service httpd Restart

WDCP processing methods that cannot be accessed after upgrading php5.8 to php7.1.12

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.