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
When you write buttons (input, button), you will f...
Why do we need permission management? 1. Computer...
animation Define an animation: /*Set a keyframe t...
Introduction to Nginx Nginx is a high-performance...
1. Install tomcat8 with docker 1. Find the tomcat...
The hardware requirements for deploying Hyper-V a...
This article mainly introduces the dynamic SQL st...
Table of contents Overview Virtual Dom principle ...
wangEditor is a web rich text editor developed ba...
The detailed installation process of mysql5.7.21 ...
<a href="https://www.jb51.net/" titl...
The MySQL explain command can analyze the perform...
Table of contents What is a slot Understanding of...
In my past work, the development server was gener...
When the amount of data in MySQL is large, limit ...