Install php 5.5 5.6 7.2 centos 7

Cara Install php 5.6 centos 7

1.Install Repo Epel dan Remi

# 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

2.Install Repo Epel dan Remi

# yum install yum-utils

3.Pilih versi php yang akan kamu install

# yum-config-manager --enable remi-php55   [Install PHP 5.5]
# yum-config-manager --enable remi-php56   [Install PHP 5.6]
# yum-config-manager --enable remi-php72   [Install PHP 7.2]

4.Install PHPnya

# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo

5.Cek versi php

# php -v