头图

Upgrade vs update

Web technology is changing with each passing day, and updating and upgrading is one of the maintenance tasks. A program that is not updated (upgraded) for a long time, just like a building that has not been maintained for a long time, will accelerate aging and gradually lose functions until it becomes unusable. And we recently discovered that some friends are confused about the two concepts of "update" and "upgrade", and mistakenly mixed these two words when describing them. Today, let’s talk about the difference between "update" and "upgrade".

The two words update or upgrade have similarities. Although they are all from the low version to the high version, there are also obvious differences when you carefully understand them.

In the actual upgrade work, there are mainly two forms of version change goals:

  • major version changes , for example: MySQL5.6->MySQL5.7, PHP5.6->PHP7.0
  • minor version changes , for example: MySQL5.6.25-->MySQL5.6.30, PHP5.6.33->PHP5.6.37

The major version changes of the program are significant changes in function and architecture (qualitative changes), the upgrade process is complicated, and there is a risk of upgrade failure. The minor version changes of the program are updated content (quantitative changes) from the perspective of patch vulnerabilities. ), the upgrade process is relatively simple.

All in all, the major version change is " upgrade ", and the minor version change is " update ". To distinguish the difference between these two words, don’t forget to use the words accurately~

PHP version upgrade tutorial

In the actual use process, you will encounter the situation of upgrading the major version of PHP, such as: from PHP5.5->PHP5.6 or PHP5.6->PHP7.0, etc. For the LAMP environment we provide, the upgrade method is very simple.

Take PHP5.5->PHP5.6 as an example, the details are as follows:

  1. After connecting to the Linux server, execute the following commands in sequence:
//首先,禁用当前 PHP55 源
yum-config-manager --disable remi-php55   

//然后,启用需升级 PHP56 源
yum-config-manager --enable remi-php56     

//最后,升级更新
yum update -y

2. To ensure that the upgrade is successful, please check the upgraded PHP version

php -v
The above scheme is also applicable to PHP7.0->PHP7.2

If you want to know more about PHP installation and upgrade details, you can read our PHP Practice Guide .


Websoft9
37 声望8 粉丝

专注于开源软件的集成、自动化安装与商业级支持服务,致力帮助企业客户在云服务器上简化企业级软件的安装和部署,业已对国内外200+个高质量的应用软件、基础软件、数据库、DevOps、企业智能等领域的开源软件进行...