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

Implementation of React virtual list

Table of contents 1. Background 2. What is a virt...

Implement group by based on MySQL to get the latest data of each group

Preface: The group by function retrieves the firs...

WeChat applet component development: Visual movie seat selection function

Table of contents 1. Introduction 1. Component da...

MySql Installer 8.0.18 Visual Installation Tutorial with Pictures and Text

Table of contents 1. MySQL 8.0.18 installation 2....

Linux type version memory disk query command introduction

1. First, let’s have a general introduction to th...

Let's talk about the two functions of try catch in Javascript

The program is executed sequentially from top to ...

Layim in javascript to find friends and groups

Currently, layui officials have not provided the ...

How to use explain to query SQL execution plan in MySql

The explain command is the primary way to see how...

Html+css to achieve pure text and buttons with icons

This article summarizes the implementation method...

The actual process of implementing the guessing number game in WeChat applet

Table of contents Function Introduction Rendering...

Introduction to MySQL MHA operation status monitoring

Table of contents 1. Project Description 1.1 Back...

Summary of knowledge points about events module in Node.js

Through the study and application of Node, we kno...

How to use CSS3 to implement a queue animation similar to online live broadcast

A friend in the group asked a question before, th...