10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[PHP]yumでPHP7をインストールする

Last updated at Posted at 2016-02-16

準備

リポジトリの追加

PHPに特化したリポジトリがあるので、それを追加
https://webtatic.com/

CentOS/RHEL 6.x:
CentOS6.5にインストールするのを想定

$ sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
$ sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

インストール

必要なパッケージを選んでインストール
https://webtatic.com/packages/php70/
上記ページの「Package」参照

$ sudo yum -y install php70w php70w-devel php70w-mcrypt php70w-mbstring php70w-mysqlnd php70w-pdo php70w-common php70w-xml php70w-opcache php70w-gd

確認

$ php -v
HP 7.0.3 (cli) (built: Feb  4 2016 21:15:42) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
10
9
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
10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?