How to upgrade php to 7.2 on Centos

How to upgrade php to 7.2 on centos 6 ?

 Enter the following commands on the terminal to upgrade php:

 

1. To install latest PHP 7, you need to add EPEL and Remi repository.

 2. Install yum-util packages

root@gateway:~# yum install yum-utils

 3.  Enable remi repo as per the desired php version

root@gateway:~#   sudo yum-config-manager --enable remi-php72

root@gateway:~#    sudo yum update

 4. Finally install php7.X 

root@gateway:~#    sudo yum install php72

 

 
 How to upgrade php in centos 7  ?

 Enter the following commands on the terminal to upgrade php:

1. Turn on EPEL repo

root@gateway:~#  sudo yum install epel-release

2. Turn on remi-repo

 3. Install yum-util packages
 

root@gateway:~#   sudo yum install yum-utils -y

 4. Enable remi repo as per the desired php version

root@gateway:~#   sudo yum-config-manager --enable remi-php72

root@gateway:~#    sudo yum update

 5. Finally install php7.X  
 

root@gateway:~#    sudo yum install php72

0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Enable SSH Key based authentication and Disable Password Authentication in ssh
    Viewed 94 times since Tue, Apr 21, 2020
    What is ezeelogin?
    Viewed 1401 times since Mon, Aug 21, 2017
    Do i need to install an agent on every machine or instance that I need to manage in Ezeelogin?
    Viewed 1414 times since Mon, Aug 21, 2017
    Will i be locked out of my servers if my ezeelogin hosted server goes down ?
    Viewed 2538 times since Mon, Aug 21, 2017
    How to export servers ?
    Viewed 3298 times since Sat, Sep 2, 2017
    How to re-add a reinstalled server?
    Viewed 104 times since Tue, Apr 21, 2020
    Why is ezeelogin the most secure gateway?
    Viewed 1513 times since Mon, Aug 21, 2017
    Where do i view the changelog | Release notes for Ezeelogin jump server ?
    Viewed 2072 times since Wed, Jun 14, 2017
    Is the software upgrade seamless from free to paid? Do i have to reinstall?
    Viewed 1363 times since Mon, Aug 21, 2017
    How to prevent putty window from closing during ssh
    Viewed 61 times since Wed, Apr 22, 2020