CentOS 7.x Installing PHP 7.x

From Notes_Wiki
Revision as of 07:13, 9 July 2018 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_package_management|CentOS 7.x package management</yambe:breadcrumb> =CentOS 7.x Installing PHP 7.x= To install PHP 7.x versions on CentOS 7.x use...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_package_management|CentOS 7.x package management</yambe:breadcrumb>

CentOS 7.x Installing PHP 7.x

To install PHP 7.x versions on CentOS 7.x use following steps:

  1. Setup repositories and packages
    yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
    yum -y install yum-utils
    yum-config-manager --enable remi-php72
    yum -y update php
    Replace remi-php72 with remi-php71 or remi-php70 if older versions are required
  2. Verify PHP version installed using
    php -v



Refer: