環境
CentOS7(Azure)
remi,epelリポジトリは追加済み
php56をインストールしてみる
phpとremiリポジトリのphp56はインストール場所が異なる。
通常の yum install php
先
/usr/bin/php/
remi-php56版のインストール先
/opt/remi/php56/
参考:https://teratail.com/questions/41512
. /opt/remi/php56/enable
を実行すれば利用可能だがapacheとの連携どうするか分からないので諦め
リポジトリの優先度を変更してインストール
参考:http://easyramble.com/add-repositories-and-set-priorities.html
vi /etc/yum.repos.d/CentOS-Base.repo
とりあえず priority=99
に変更して yum info php
で確認。
5.6が指定されたのでインストール。
終わったら priority
を戻しておくのを忘れずに。