LoginSignup
40
40

More than 5 years have passed since last update.

yumでphp7.0をCentOS6.7にインストール

Last updated at Posted at 2015-12-05

先日PHP7.0.0GA版がリリースされたのでインストールしてみた。

php7.0での変更点は公式で。
PHP 5.6.x から PHP 7.0.x への移行

qiitaだとこの記事によくまとまっている。
PHP 7 リリース内容の確認

vagrantでbento/centos-6.7を立ち上げて実験。
それにかんしてはドットインストールでも参考にしてください。

インストール

sudo yum -y install epel-release
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm
sudo yum -y install  --enablerepo=remi --enablerepo=remi-php70 php

最低限ならこれだけです。

実行結果

php -v
PHP 7.0.0 (cli) (built: Dec  3 2015 18:05:30) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
40
40
2

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