Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement WDCP upgrade php5.3 install memcached and eaccelerator

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "how to achieve WDCP upgrade php5.3 installation memcached and eaccelerator", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "how to achieve WDCP upgrade php5.3 installation memcached and eaccelerator"!

SCP Remote VPS Quick Move and WDCP upgrade php5.3 install memcached and eaccelerator

1. SCP remote VPS quick move detailed operation method

1. SCP command format is as follows: scp [parameter] [original path] [target path]

2. Copy the files of the local VPS host to the new VPS host:

scp -P 2233 /home/freehao123.tar.gz root@123.123.123.123:/root/freehao123.tar.gz

3. -P 2233 indicates port. If your original VPS host has not modified port and uses default 22, you don't need to write-P 2233. Parameters for SCP commands include:

-1 Force scp command to use protocol ssh2-2 Force scp command to use protocol ssh3-4 Force scp command to use IPv4 addressing only-6 Force scp command to use IPv6 addressing only-B Use batch mode (transfer password or phrase is not asked)-C Allow compression. (Pass the-C flag to ssh to turn on compression)-p Leave the modification time, access time and access rights of the original file. - q Does not display the transfer progress bar. - r Recursively copies the entire directory. - v Detailed mode display output. scp and ssh(1) display debugging information for the entire process. This information is used to debug connections, verify and configure problems. - c cipher Encrypts data transmissions with cipher, this option is passed directly to ssh. - F ssh_config specifies an alternative ssh configuration file, this parameter is passed directly to ssh. - i identity_file reads the key file used for transmission from the specified file. This parameter is passed directly to ssh. - l limit Limits the bandwidth available to users in Kbit/s. - o ssh_option If you are accustomed to using the parameter passing method in ssh_config(5), -P port Note that it is capitalized P, port is the port number used to specify the data transmission-S program Specifies the program used for encrypted transmission. This program must be able to understand the ssh(1) option.

4. Copy the folder directory of the local VPS host to the new VPS host:

scp -r /www/wdlinux/mysql-5.1.63/var/ root@211.155.86.188:/www/wdlinux/mysql-5.1.63/

5. The above command is to copy all the Var folder directories to the new VPSmysql-5.1.63 directory.

Of course, if you want to copy files from a remote VPS to a local VPS, you can reverse the above command:

scp -P 2233 root@123.123.123.123:/root/freehao123.tar.gz /home/freehao123.tar.gz

7. The above command means to copy 123.123.123:/root/freehao123.tar.gz to/home/freehao123.tar.gz of the local VPS.

8. Similarly, to copy the folder directory on the remote VPS host to the local one, use the command:

scp -r root@211.155.86.188:/www/wdlinux/mysql-5.1.63/var/ /www/wdlinux/mysql-5.1.63/

9. After mastering the above commands, it is very easy for us to move between the old and new VPS. Take WDCP as an example. First, all services are stopped:

service nginxd stopservice httpd stopservice wdapache stopservice mysqld stopservice pureftpd stop

10. Find the SQL, WEB, wdcp and other data storage directories of WDCP, and copy them directly. For example:

scp -r /www/wdlinux/mysql-5.1.63/var/ root@211.155.86.188:/www/wdlinux/mysql-5.1.63/var/scp -r /www/web/ root@211.155.86.188:/www/web/scp -r /www/wdlinux/wdcp root@211.155.86.188:/www/wdlinux/wdcp

11. When you start connecting to the remote VPS, you will be prompted whether to continue connecting. Enter Yes and then fill in the password of the remote VPS.

12. You can see the replication progress during the replication process. (Click to enlarge)

After the copy is complete, you may need to adjust the file directory of the new VPS.

WDCP upgrade php5.3.29 method

1, WDCP upgrade php5.3.29, the reason to say so, because the official WDCP upgrade PHP script is not stated, resulting in several PHP cache plug-ins behind the failure. Execute orders:

wget https://down.wdlinux.cn/in/php_up53.shsh php_up53.sh

During the PHP upgrade process, you can clearly see that the PHP upgrade script is php5.3.29.

3, see the following prompt, indicating that your PHP has been upgraded.

Open the probe and you will see that PHP for WDCP is already php5.3.29.

3. WDCP successfully installed memcached and eaccelerator after upgrading php5.3

1. First upload the memcached-1.4.12.tar.gz installation package download to your VPS/tmp folder. Here is the memcached installation package download address.

Then upload the memcached_ins file to your VPS Root directory, where the memcached_ins file was downloaded. Please unzip the download before uploading.

Finally, log in to your VPS with SS*H client and execute the command: sh memcached_ins.sh to see the following prompt, indicating that your php5.3.29 has been successfully installed on memcached.

The next step is to install the accelerator. Execute orders:

wget https://down.wdlinux.cn/in/eac0961_ins.sh sh eac0961_ins.sh

5. Then create an eaccelerator_cache directory under/www/wdlinux/directory.

6. Restart the VPS host and open the probe to see that the eaccelerator has been successfully installed.

7, zend opt is no longer supported since php5.3, the original zend opt can be replaced by Zend Guard Loader. Upgrade Command:

wget https://down.wdlinux.cn/in/ZendGL_ins.shsh ZendGL_ins.sh

8. If you have friends who use LNMP and want to install PHP cache acceleration extensions eAccelerator,xcache and memcached, you can see: WDCP,LNMP Install PHP cache acceleration extensions eAccelerator,xcache and memcached

IV. SCP Remote VPS Relocation and WDCP Usage Summary

1. SCP can copy files and folders remotely to avoid the failure of website relocation due to slow local network speed, but SCP directly copies folders to the new VPS host. If it is to take effect, check whether the original folder location is correct. The system configuration file should also be further checked. The overwrite configuration file must be correct.

2, SCP transfer file is similar to the tribe before the introduction: VPS host fast moving method: while playing the edge of the transmission side decompression, suitable for large and medium-sized forum sites, are directly between the two VPS host package file transfer. WDCP upgrade PHP is also required on Alibaba Cloud's VPS, and other temporary problems have not been encountered like the strange ones mentioned in this article.

At this point, I believe that everyone has a deeper understanding of "how to achieve WDCP upgrade php5.3 installation memcached and eaccelerator", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report