Many webmasters who use Linux servers have installed WDCP, but the components of WDCP are also older. Today, I will take you to upgrade the versions of various components.
In principle, the Apache of WDCP cannot be upgraded, and the official said that it cannot be upgraded! However, there are also some experts who upgrade. Because of the food of Gotai, there is no Apache upgrade here.
I was going to upload the script, but the forum did not support uploading the compressed package, so I had no way to save it with Qiniu!
In particular, cloud locks are magical. If you have installed cloud locks, please uninstall them before upgrading
The unloading method is as follows:
/usr/local/yunsuo_agent/uninstall
It will be ready in a moment. You will see the prompt of uninstall success.
1、 Script Introduction
1. Upgrade php
Php_up53.sh Upgrade php5.3
Php_up53_1g.sh memory is less than 1GB or the above compilation fails. You can use this to upgrade php5.3
Php_up54.sh Upgrade php5.4
Php_up55.sh Upgrade php5.5
2. Upgrade MySQL
Mysql_up55.sh Upgrade mysql5.5
3. Upgrade Nginx or Tengine script
Nginx up.sh Upgrade Nginx
4. Install Zend Guard Loader
ZendGL_ins.sh Install Zend Guard Loader for php5.3
Zendguard6.sh Install Zend Guard Loader for php5.4
5. Some extensions are installed. These extensions have corresponding version restrictions, and they are released separately for those who need them. Xiaobai needs guidance to use them.
Libmcrypt_ins.sh Install the libmcrypt extension
Memcached_ins.sh Install Memcached
Mysql_innodb_ins.sh Install mysql_innodb extension
Mysqli_ins.sh Install mysqli extensions. This is the version of php5.2.17 or php5.4.34. There are options
Pdo_mysql_ins.sh Install the pdo_mysql component. This is the version of php5.2.17 or php5.3.27. There are options
Redis installs Redis.
2、 Script Usage
1. Upgrade php
1.1 Upgrade php5.3
wget //wdcp.vestavps.com/upgrade/php_up53.sh
sh php_up53.sh
1.2 Upgrade php5.3 Memory is less than 1G
wget //wdcp.vestavps.com/upgrade/php_up53_1g.sh
sh php_up53_1g.sh
1.3 Upgrade php5.4
wget //wdcp.vestavps.com/upgrade/php_up54.sh
sh php_up54.sh
1.4 Upgrade php5.5
wget //wdcp.vestavps.com/upgrade/php_up55.sh
Sh php_up55.sh This script can also be upgraded by adding a version number. I don't tell ordinary people!
1.5 Upgrade php5.6.9
wget //wdcp.vestavps.com/upgrade/php_up56.sh
sh php_up56.sh
Finally restart apache
service httpd restart
View the latest version number of PHP: //php.net/downloads.php
If an error occurs during the upgrade, please install iconv separately
wget //down.wdlinux.cn/in/iconv_ins.sh
sh iconv_ins.sh
2. Upgrade MySQL
wget //wdcp.vestavps.com/upgrade/mysql_up55.sh
sh mysql_up55.sh
service mysqld start
If restarting MySQL after the upgrade is unsuccessful, please modify the MySQL configuration file:
vi /www/wdlinux/init.d/mysqld
Modify the directory of line 46 47 to the installation directory and database directory
Modify as follows:
basedir=/www/wdlinux/mysql
datadir=/www/wdlinux/mysql/var
3. Upgrade Nginx
wget //wdcp.vestavps.com/upgrade/nginx_up.sh
Sh nginx_up.sh can be upgraded to the version you want by adding the corresponding version number. Generally, I will not tell him.
service nginx restart
View the latest version number of nginx: //nginx.org/en/download.html
I really don't know whether Tencent users will use Tencent after upgrading to Tengine. Let's start with it!
//wdcp.vestavps.com/upgrade/tengine_up.sh
sh tengine_up.sh
You can upgrade different versions by filling in the version number according to the prompt!
4. Install ZendGuardLoader
Zend opt is no longer supported since php5.3. That is to say, those useful to zend opt should not be upgraded. Otherwise, it will only be useless. However, Zend Guard Loader can be used
4.1 Installation of php5.3
wget //wdcp.vestavps.com/upgrade/ZendGL_ins.sh
sh ZendGL_ins.sh
Install version 4.2 php5.4
//wdcp.vestavps.com/upgrade/Zendguard6.sh
sh Zendguard6.sh
5. Some extensions are installed. These extensions have corresponding version restrictions, and they are released separately for those who need them. Xiaobai needs guidance to use them.
wget //wdcp.vestavps.com/upgrade/libmcrypt_ins.sh
sh libmcrypt_ins.sh
wget //wdcp.vestavps.com/upgrade/memcached_ins.sh
sh memcached_ins.sh
wget //wdcp.vestavps.com/upgrade/mysql_innodb_ins.sh
sh mysql_innodb_ins.sh
wget //wdcp.vestavps.com/upgrade/mysqli_ins.sh
sh mysqli_ins.sh
wget //wdcp.vestavps.com/upgrade/pdo_mysql_ins.sh
sh pdo_mysql_ins.sh
wget //wdcp.vestavps.com/upgrade/redis_ins.sh
sh redis_ins.sh
(Transfer) There is no error in the personal test of the station master.
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.