0
0

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.

はじめてのAWSその3 Wordpressを構築する

0
Posted at

AWSでサーバ構築するための覚書です。その2で作ったEC2サーバにWordpressをインストールします。

Wordpressのインストール

こちらを参考にさせていただきながら
https://qiita.com/moomindani/items/9968df0d4396564bf74c

Teratermで接続

まずはTeratermでEC2に接続して作業します。

Apacheのインストール

ApacheはWebサーバでhttpのdaemon(サービス)なので「httpd」はApacheのことです。

インストールと設定

httpdをインストール

インストールの経過が画面上にどんどん出てきますが、最後にComplete!が表示されればインストール成功

httpdを自動起動に設定

sudo systemctl enable httpd.service

ec2-userをapacheグループに追加

httpdを起動

ここで忘れていたセキュリティグループの設定

EC2の管理画面でセキュリティグループlaunch-wizard-1を開く
image.png

下部にあるインバウンドルールの編集をクリック
image.png

インバウンドルール2を追加する

  • タイプ:HTTP
  • ソース:0.0.0.0/0
    image.png

接続テスト

ブラウザから接続してみてApacheのテストページが表示できたら成功。このときのURLはAWSコンソールでEC2の情報を表示したときに「パブリック IPv4 DNS」と書かれているものです。
image.png

MariaDB,PHP,WordPressのインストール

この先はこちらの記事を見ながら作っていきました
https://qiita.com/moomindani/items/9968df0d4396564bf74c

WordPressによるモダンなWebサイトの完成

image.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?