Help us understand the problem. What is going on with this article?

AWS EC2 で始めるお手軽LAMP環境 APACHE2.4 MYSQL5.5 PHP5.6

More than 3 years have passed since last update.

AWSのamazonデフォルトOSはCentOSとほぼ同じです。

普通に yum install -y httpd mysql php とかやっちゃうと、Apache2.2 やら PHP5.3 がインストールされてしまいます。
今回はプロキシやCakePHP2.6とPHP5.6を使いたいので、一工夫が必要でした。
しかし、AmazonのデフォルトOSには@amzn-main @amzn-updates という手間を一気に省いてくれる素晴らしいリポジトリが用意されていました。

yumコマンドでインストール
yum install -y httpd24 mysql55 php56 php56-mbstring php56-pdo

これだけでパッケージ依存で以下全部インストール出来ます。

インストールされるパッケージ
httpd24.x86_64                        2.4.12-1.60.amzn1            @amzn-main
httpd24-tools.x86_64                  2.4.12-1.60.amzn1            @amzn-main
mysql.noarch                          5.5-1.6.amzn1                @amzn-main
mysql-server.noarch                   5.5-1.6.amzn1                @amzn-main
mysql55.x86_64                        5.5.42-1.4.amzn1             @amzn-main
mysql55-common.x86_64                 5.5.42-1.4.amzn1             @amzn-main
mysql55-libs.x86_64                   5.5.42-1.4.amzn1             @amzn-main
mysql55-server.x86_64                 5.5.42-1.4.amzn1             @amzn-main
php-pear.noarch                       1:1.9.5-2.17.amzn1           @amzn-main
php56.x86_64                          5.6.9-1.112.amzn1            @amzn-updates
php56-cli.x86_64                      5.6.9-1.112.amzn1            @amzn-updates
php56-common.x86_64                   5.6.9-1.112.amzn1            @amzn-updates
php56-devel.x86_64                    5.6.9-1.112.amzn1            @amzn-updates
php56-jsonc.x86_64                    1.3.6-1.19.amzn1             @amzn-main
php56-jsonc-devel.x86_64              1.3.6-1.19.amzn1             @amzn-main
php56-mbstring.x86_64                 5.6.9-1.112.amzn1            @amzn-updates
php56-mysqlnd.x86_64                  5.6.9-1.112.amzn1            @amzn-updates
php56-pdo.x86_64                      5.6.9-1.112.amzn1            @amzn-updates
php56-pecl-apcu.x86_64                4.0.7-1.5.amzn1              @amzn-updates
php56-process.x86_64                  5.6.9-1.112.amzn1            @amzn-updates

Mysql5.6が用意されていないところだけがなんとも残念だなあと思いました。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした