LoginSignup
0
1

More than 5 years have passed since last update.

php5.6をインストールしようとしたらphp5.4が優先されてはまったときのメモ

Posted at

環境

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 を戻しておくのを忘れずに。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1