A brief analysis of how to upgrade PHP 5.4 to 5.6 in CentOS 7

A brief analysis of how to upgrade PHP 5.4 to 5.6 in CentOS 7

1. Check the PHP version after entering the terminal

php -v

The output is 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 (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

Summarize

The above is the method I introduced to you to upgrade the built-in PHP 5.4 of CentOS 7 to 5.6. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • CentOS yum php 7.x upgrade method without deletion
  • Full record of upgrading php5.2 to php5.4 under Centos (compile and install)
  • How to upgrade PHP to 5.3 on CentOS 5.6
  • How to upgrade PHP and MySQL in CentOS system

<<:  Fabric.js implements DIY postcard function

>>:  MYSQL implements the continuous sign-in function and starts from the beginning after one day of sign-in (sql statement)

Recommend

Tutorial on installing MySQL 5.7.18 using RPM package

system: CentOS 7 RPM packages: mysql-community-cl...

9 great JavaScript framework scripts for drawing charts on the web

9 great JavaScript framework scripts for drawing ...

Docker image creation Dockerfile and commit operations

Build the image There are two main ways to build ...

Vue implements the magnifying glass effect of tab switching

This article example shares the specific code of ...

Solve the problem of Syn Flooding in MySQL database

Syn attack is the most common and most easily exp...

Detailed explanation of Linux lsof command usage

lsof (list open files) is a tool to view files op...

MySQL index knowledge summary

The establishment of MySQL index is very importan...

10 Deadly Semantic Mistakes in Web Typography

<br />This is from the content of Web front-...

Detailed example of clearing tablespace fragmentation in MySQL

Detailed example of clearing tablespace fragmenta...

Mysql 5.6.37 winx64 installation dual version mysql notes

If MySQL version 5.0 already exists on the machin...

Web page production TD can also overflow hidden display

Perhaps when I name this article like this, someon...

Detailed explanation of common methods of Vue development

Table of contents $nextTick() $forceUpdate() $set...