CentosへPHP5.6のインストール。
いつも忘れるので備忘録的な感じで。
remi,epelリポジトリの用意
$ rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yumの設定
$ vi /etc/yum.repos.d/CentOS-Base.repo
# 次のセクションで無効化
[base]
enabled=0
[updates]
enabled=0
[extras]
enabled=0
PHP5.6インストール
yum install --enablerepo=remi --enablerepo=remi-php56 php php-mysql php-json php-mysql
追加のphp関連インストールは都度。。。ということで。