LoginSignup
0
0

More than 5 years have passed since last update.

centos7にphp5.6をインストールする

Posted at

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関連インストールは都度。。。ということで。

0
0
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
0