Upgrading to PHP 7

Upgrading to PHP 7 from PHP 5 on CentOS 7

Install EPEL and Remi Repositories:
# 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

Install the yum-config-manager:
# yum install yum-utils

Enable the latest php version, latest version as of this writing:
# yum-config-manager –enable remi-php73

Install PHP 7 with all necessary modules:
# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo

Check php version:
# php -v