My Tracking

My Tracking

記憶力の低下が気になるアラフォー男の備忘録

【AWS学習記】WordPress 環境構築⑥~Wordpressへの接続および投稿

WordPress構築を行うにあたり、WEBサーバ用のEC2にApache/PHP/Wordpresの追加まで完了したため、 いよいよ、wordpressを利用する。

目次

構成

(構成図)

Wordpress用DBの作成

RDS上に、WordpressのDB作成を行う。ここでは、DB名を「wordpress」とした。

[ec2-user@ip-10-0-0-158 html]$ mysql -h  aws-mysql-rds.ciszm1fnyhoj.ap-northeast-1.rds.amazonaws.com -u admin -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 68
Server version: 5.6.27-log MySQL Community Server (GPL)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
mysql> create database wordpress;
Query OK, 1 row affected (0.02 sec)

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| innodb             |
| mysql              |
| performance_schema |
| sys                |
| wordpress          |
+--------------------+
6 rows in set (0.00 sec)

mysql>

wordpressのセットアップ

次に、wordpresのセットアップを行う。

ここでは、下記のとおり、アクセスすると

http://公開用WEBサーバのEIP/wordpress

wordpresのようこそ画面が表示される。

ここで、サイト名やユーザー名・パスワードを設定する。

完了すると、パスワードが通知される。

通知されたパスワードでログインする。

Wordpressへのテスト投稿

ログインができたら、テスト投稿してみる。

テスト投稿を入力し、投稿。

投稿が正常に登録できたら、wordpressの記事一覧上にも表示されることを確認する。