Configure Yum Repository
먼저 epel-releaseyum 저장소를 추가한다
# yum install epel-release
운영체제 버전에 맞는 remi-release 설치
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
PHP7을 설치(for CentOS6)
PHP7.3또는 PHP7.2나 PHP7.1을 설치 합니다.
## Install PHP 7.3
# yum --enablerepo=remi-php73 install php
## Install PHP 7.2
# yum --enablerepo=remi-php72 install php
## Install PHP 7.1
# yum --enablerepo=remi-php71 install php
PHP 버전 확인
php -v
PHP 7.3.0 (cli) (built: Dec 4 2018 16:12:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
PHP 모듈 설치
추가 PHP 모듈 응용 프로그램 설치
### For PHP 7.3
yum --enablerepo=remi-php73 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-mysql
### For PHP 7.2
yum --enablerepo=remi-php72 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-mysql
### For PHP 7.1
yum --enablerepo=remi-php71 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-mysql
설치된 사용 가능한 PHP 모듈 검색
yum --enablerepo=remi-php73 search php | grep php73
php73.x86_64 : Package that installs PHP 7.3
php73-php.x86_64 : PHP scripting language for creating dynamic web sites
php73-php-bcmath.x86_64 : A module for PHP applications for using the bcmath
php73-php-brotli.x86_64 : Brotli Extension for PHP
php73-php-cli.x86_64 : Command-line interface for PHP
php73-php-common.x86_64 : Common files for PHP
...
...
[출처 : https://tecadmin.net/nstall-php7-on-centos6/]