How to Install PHP 7 on CentOs 7 / Redhat 7 (RHEL)

This tutorial shows you how to install PHP 7 on CentOS 7.

 

This tutorial is on an CentOS 7 machine but the commands will also work on Redhat (RHEL) 7.

 

The commands that you need to follow along with this tutorial are:

 

  • sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  • sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  • sudo yum install php70w
  • sudo yum install php70w-pdo

3 thoughts on “How to Install PHP 7 on CentOs 7 / Redhat 7 (RHEL)

  1. qu

    [root@test01 ~]# sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-re lease-latest-7.noarch.rpm
    Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rp m
    Preparing… ################################# [100%]
    package epel-release-7-11.noarch is already installed
    [root@test01 ~]# sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic- release.rpm
    Retrieving https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
    Preparing… ################################# [100%]
    package webtatic-release-7-3.noarch is already installed
    [root@test01 ~]# sudo yum install php70w
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirror.es.its.nyu.edu
    * extras: mirrors.tripadvisor.com
    * updates: mirrors.greenmountainaccess.net
    No package php70w available.
    Error: Nothing to do
    [root@test01 ~]# sudo yum install php70w-pdo
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirror.es.its.nyu.edu
    * extras: mirrors.tripadvisor.com
    * updates: mirrors.greenmountainaccess.net
    No package php70w-pdo available.
    Error: Nothing to do

    Can you please help?

    Reply
  2. Pingback: How To Install PHP 7 on CentOS 7 / Redhat (RHEL) 7 | PHP Video Academy

  3. Pingback: How To Install PHP 7 on CentOS 7 / Redhat (RHEL) 7 > BENISNOUS

Leave a Reply

Your email address will not be published. Required fields are marked *