11
13

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.

EC2にApacheとPHP(mod_php)をインストールしたメモ

Last updated at Posted at 2014-01-30

ちょっとした動作の検証のためにAWSのEC2(標準のAmazon Linux AMI)へApacheとPHP(mod_php)をインストールしてみたのでメモ。無設定ならたったこれだけの手順。
これなら自分でサーバとか維持せずに、必要な時に構築すればいいなー。

Apacheインストール&起動

$ sudo yum -y install httpd
$ sudo service httpd start

PHPインストール

$ sudo yum -y install php

mod_phpの設定

は特にいらず。/etc/httpd/conf.d/php.conf にデフォルトで記載されてる。

Apacheを再起動。

$ sudo service httpd restart

以上。

11
13
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
11
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?