LoginSignup
20
19

More than 5 years have passed since last update.

AWS EC2にApache2.4, PHP7環境を構築するメモ

Posted at
yum更新
$ sudo yum -y update
Apache2.4インストール
$ sudo yum -y install httpd24
PHP7.0インストール
$ sudo yum -y install php70 php70-mbstring php70-pdo
PHP7.0利用可能パッケージ確認(必要に応じて)
$ sudo yum list available | grep php70
インストールモジュールの確認
$ sudo yum list installed | grep httpd24
$ sudo yum list installed | grep php70
php.ini編集
$ sudo vi /etc/php.ini
httpd起動設定
$ sudo chkconfig httpd on
$ sudo chkconfig --list httpd
httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
httpd.conf編集
$ sudo vi /etc/httpd/conf/httpd.conf
httpd.conf シンタックスチェック&起動
$ sudo /etc/init.d/httpd configtest
Syntax OK
$ sudo /etc/init.d/httpd start
Starting httpd:                                            [  OK  ]
その他参考ページ
20
19
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
20
19