Install PHP 7 on CentOS 6

Install EPEP repo with command

Next you need REMI repo, you can get it form

Install it with

You can search for PHP versions with command

Select PHP version

First install yum-utils

Now you can select required PHP version with command

Use remi-php70 for PHP 7.0, remi-php71 for PHP 7.1

Install PHP

To install PHP 7.2, run

PHP binary will be installed as php72, you can create a synlink if you need.

Enable PHP in Apache

Now restart apache

CentOS 6