LoginSignup
9
9

More than 5 years have passed since last update.

CentOS 6.xにPHP7をインストールしてみる。

Last updated at Posted at 2015-12-17

PHP7が正式にリリースされたらしいので実験がてらCentOSにPHP7をインストールしてみようと思います。
今回の環境は、CentOS6.7でまだyumでphpのインストールはしていない状態です。

 PHP7が取得できるrpmを入れて下準備

# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

yumでPHP7をインストール!

# yum install php70w php70w-common php70w-devel php70w-intl php70w-mysql php70w-mbstring php70w-gd php70w-pear php70w-mcrypt

念のためインストールされたPHPのバージョン確認

# php -v
PHP 7.0.0 (cli) (built: Dec  2 2015 21:42:51) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Coyright (c) 1998-2015 Zend Technologies

rpmさえ入れてあげればインストールはものすごく簡単でした。

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