1: Check the PHP version after entering the terminal php -v The output may be as follows: PHP 5.4.35 (cli) (built: Nov 14 2014 07:04:10) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies 2: Execute the following command to upgrade the software warehouse rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 3: Execute the following command to delete php yum remove php-common Then it will ask you if you want to continue, just type yes. 4: Install PHP 5.6 version (php56w-devel is not required) yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring 5: Restart httpd service httpd restart View the latest version php -v It should be 5.6 now! The above is the relevant knowledge points about how to upgrade PHP to 5.6 under Linux. Thank you for your learning and support for 123WORDPRESS.COM. You may also be interested in:
|
>>: JavaScript implements simple scroll window
I believe everyone has used JD. There is a very c...
As the title says, otherwise when the page is revi...
Hello everyone! I am Mr. Tony who only talks abou...
Preface Regarding the use of MySQL indexes, we ha...
The reason is that this type of web page originate...
Table of contents Preface InnoDB storage architec...
When using the idea development tool to debug cod...
Since I often install the system, I have to reins...
Shell is a program written in C language, which i...
Sometimes, we need to copy a whole column of data...
In the web pages we make, if we want more people ...
Table of contents What is VUE Core plugins in Vue...
Preface: When you execute a SQL statement in MySQ...
The implementation principle of Vue2.0/3.0 two-wa...
Table of contents 1. Background: 2. Design ideas:...