Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Springshen/d8802af0f690f54892f5566d109f7a6c to your computer and use it in GitHub Desktop.

Select an option

Save Springshen/d8802af0f690f54892f5566d109f7a6c to your computer and use it in GitHub Desktop.

CentOS7 に PHP5.6 インストール

概要

AWS CentOS7 t2.micro インスタンスに PHP5.6をインストールする。

rootユーザに変更
$ sudo su -
PHP5.6 インストール
# 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 install -y --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
バージョン確認
# php -v

PHP 5.6.11 (cli) (built: Jul 12 2015 20:13:00)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans

以上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment