安装最新的yum源
# CentOS 6 / RHEL 6
yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# CentOS 7 / RHEL 7
yum install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
安装php组件
$ yum --enablerepo=remi,remi-php70 install
php
php-cgi
php-cli
php-fpm
php-common
php-devel
php-mysqlnd
php-mysql
php-sqlite3
php-mbstring
php-msgpack
php-mcrypt
php-bcmath
php-gd
php-xml
php-ldap
php-xmlrpc
php-opcache
php-curl
php-json
php-odbc
php-pdo
php-bz2
php-xml
php-ftp
php-imap
php-snmp
php-redis
php-memcached
php添加新的扩展
$ yum --enablerepo=remi,remi-php70 install php-redis php-memcached