Skip to content

Instantly share code, notes, and snippets.

@kenzo0107
Last active July 23, 2016 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kenzo0107/0de9c03d64704eec42a3 to your computer and use it in GitHub Desktop.
Save kenzo0107/0de9c03d64704eec42a3 to your computer and use it in GitHub Desktop.

CentOS7 に PHP5.6 インストール

PHP5.6 インストール

$ sudo su

// 2016.07.16現在 epel-release-7-7
# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/epel-release-7-7.noarch.rpm

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# yum install -y --enablerepo=remi --enablerepo=remi-php56 php php-fpm 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