Подключаем репозитарии
CentOS/RHEL 7.x:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Установка
yum install php56w php56w-common php56w-mysql php56w-mbstring php56w-mcrypt php56w-devel php56w-xml php56w-gd
Список пакетов
php56w
php56w-bcmath
php56w-cli
php56w-common
php56w-dba
php56w-devel
php56w-embedded
php56w-enchant
php56w-fpm
php56w-gd
php56w-imap
php56w-interbase
php56w-intl
php56w-ldap
php56w-mbstring
php56w-mcrypt
php56w-mssql
php56w-mysql
php56w-mysqlnd
php56w-odbc
php56w-opcache
php56w-pdo
php56w-pear
php56w-pecl-apcu
php56w-pecl-gearman
php56w-pecl-geoip
php56w-pecl-imagick
php56w-pecl-memcache
php56w-pecl-xdebug
php56w-pgsql
php56w-phpdbg
php56w-process
php56w-pspell
php56w-recode
php56w-snmp
php56w-soap
php56w-tidy
php56w-xml
php56w-xmlrpc