$ sudo rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
$ sudo yum install --enablerepo=remi-php56 --disablerepo=base,updates php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
disableを指定しないとちゃんと5.6が入らなかったりする
$ ls /etc/httpd/modules/libphp*
/etc/httpd/modules/libphp56-php5.so
apacheの設定。 /etc/httpd/conf/httpd.conf
に以下を追記
LoadModule php5_module modules/libphp56-php5.so
おわり