41
39

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.

Amazon Linux に PHP7(remi)を入れる手順メモ

Last updated at Posted at 2016-05-31

##環境 t2.micro

cat /proc/version
Linux version 4.4.8-20.46.amzn1.x86_64 (mockbuild@gobi-build-60009) 

##手順

/etc/yum.repos.d/epel.repo は最初から入っていたので

  • Remi リポジトリを入れます。
Remi
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

  • epelからlibwebp を入れます。

gd-last が libwebpを必要としてますが、amzn-main.repo のはversionが合わない。

epel
yum -y install libwebp --disablerepo=amzn-main --enablerepo=epel

  • amzn-mainから必要なライブラリ郡を入れます。
amzn-main
yum -y install libmcrypt libtool-ltdl libtidy libXpm libtiff gd-last autoconf automake

  • Remi70からPHP7を入れます。
Remi
yum -y install --disablerepo=amzn-main --enablerepo=remi-php70 php php-opcache php-devel php-mbstring php-mcrypt php-phpseclib-crypt-blowfish php-pecl-apc php-gd php-mysqlnd php-xml

※追記 AWS SDK for PHP 3.x の Aws\S3\Transfer::transfer で php-xmlが必要。

# php -v
PHP 7.0.7 (cli) (built: May 25 2016 18:36:46) ( 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

###参考にさせてもらいました
Amazon Linuxで nginx + php7 環境構築

41
39
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
41
39

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?