質問編集履歴

33

少し修正しました。

2018/11/10 18:06

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -98,8 +98,6 @@
98
98
 
99
99
 
100
100
 
101
- $ sudo a2dissite wordpress.conf
102
-
103
101
  $ sudo a2ensite 000-wordpress.conf
104
102
 
105
103
  $ sudo apache2ctl configtest

32

少し修正しました。

2018/11/10 18:06

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -41,6 +41,8 @@
41
41
  $ sudo apt install apche2
42
42
 
43
43
  $ sudo apt install php-curl php-gd php-xmlrpc libapache2-mod-php php-mysql nmap
44
+
45
+ $ sudo mysql_secure_installation
44
46
 
45
47
  $ sudo apt update
46
48
 

31

少し修正しました。

2018/11/10 18:04

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -48,6 +48,10 @@
48
48
 
49
49
 
50
50
 
51
+ WordPressの最新版をダウンロードして、インストールしました。
52
+
53
+
54
+
51
55
  [Ubuntu Server 18.10で ufw を使用してファイアーウォールを設定しました。](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_13h19_20.png)
52
56
 
53
57
  [ポートフォワーディングの設定です。](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_13h33_38.png)
@@ -68,7 +72,7 @@
68
72
 
69
73
 
70
74
 
71
- WordPressのapache2の設定を変更しました
75
+ WordPressのapache2の設定です
72
76
 
73
77
  $ cd /etc/apache2/sites-available/
74
78
 

30

少し修正しました。

2018/11/10 17:55

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -41,46 +41,6 @@
41
41
  $ sudo apt install apche2
42
42
 
43
43
  $ sudo apt install php-curl php-gd php-xmlrpc libapache2-mod-php php-mysql nmap
44
-
45
- MySQLの安全性を高くするために「mysql_secure_installation」を実行しました。
46
-
47
-
48
-
49
- $ wget https://ja.wordpress.org/latest-ja.tar.gz
50
-
51
- $ cd /var/www/html
52
-
53
- $ sudo tar xzvf ~/latest-ja.tar.gz
54
-
55
- $ sudo chown -R www-data:www-data wordpress
56
-
57
-
58
-
59
- $ sudo nano /etc/apache2/sites-available/wordpress.conf
60
-
61
- 下記のとおり編集しました。
62
-
63
- <Directory /var/www/html/wordpress>
64
-
65
- Options All
66
-
67
- AllowOverride All
68
-
69
- Require all granted
70
-
71
- </Directory>
72
-
73
-
74
-
75
- $ sudo a2ensite wordpress
76
-
77
- $ sudo a2enmod rewrite
78
-
79
- $ sudo systemctl restart apache2
80
-
81
- $ sudo mysqladmin create wordpress -p
82
-
83
- Enter password: ←MySQL管理者(root)パスワードを入力します
84
44
 
85
45
  $ sudo apt update
86
46
 

29

微修正しました。

2018/11/10 17:49

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
  $ sudo tar xzvf ~/latest-ja.tar.gz
54
54
 
55
- $ sudo chown -R www-data.www-data wordpress
55
+ $ sudo chown -R www-data:www-data wordpress
56
56
 
57
57
 
58
58
 

28

少し修正しました。

2018/11/09 18:07

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -148,7 +148,7 @@
148
148
 
149
149
  下記のとおり追記しました。
150
150
 
151
- ServerName localhost  ← 追記しました
151
+ [ServerName localhost   ← 追記しました](https://cdn.scrot.moe/images/2018/11/09/2018-11-06_22h44_38.png)
152
152
 
153
153
 
154
154
 

27

微修正しました。

2018/11/09 08:34

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

26

微修正しました。

2018/11/09 08:25

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -41,6 +41,8 @@
41
41
  $ sudo apt install apche2
42
42
 
43
43
  $ sudo apt install php-curl php-gd php-xmlrpc libapache2-mod-php php-mysql nmap
44
+
45
+ MySQLの安全性を高くするために「mysql_secure_installation」を実行しました。
44
46
 
45
47
 
46
48
 
@@ -164,10 +166,6 @@
164
166
 
165
167
 
166
168
 
167
- MySQLの安全性を高くするために「mysql_secure_installation」を実行しました。
168
-
169
-
170
-
171
169
  [/etc/netplan/50-cloud-init.yamlを編集して、固定IPアドレスを設定しました。](https://cdn.scrot.moe/images/2018/11/08/2018-11-09_06h40_41.png)
172
170
 
173
171
  [ファイアーウォールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h26_48.png)

25

少し修正しました。

2018/11/09 08:20

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -154,6 +154,8 @@
154
154
 
155
155
  下記のとおり編集しました。
156
156
 
157
+ bind-address = 172.0.0.1   ← コメントアウトしました(# bind-address = 172.0.0.1に変更しました)
158
+
157
159
  bind-address = 0.0.0.0  ← 追記しました
158
160
 
159
161
 

24

少し追記しました。

2018/11/09 05:44

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -154,8 +154,6 @@
154
154
 
155
155
  下記のとおり編集しました。
156
156
 
157
- # bind-address = 172.0.0.1  ← コメントアウトしました
158
-
159
157
  bind-address = 0.0.0.0  ← 追記しました
160
158
 
161
159
 

23

少し追記しました。

2018/11/08 23:42

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -154,7 +154,7 @@
154
154
 
155
155
  下記のとおり編集しました。
156
156
 
157
- # bind-address = 172.0.0.1  ← comment outしました
157
+ # bind-address = 172.0.0.1  ← コメントアウトしました
158
158
 
159
159
  bind-address = 0.0.0.0  ← 追記しました
160
160
 

22

少し追記しました。

2018/11/08 23:40

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -146,7 +146,7 @@
146
146
 
147
147
  下記のとおり追記しました。
148
148
 
149
- ServerName localhost
149
+ ServerName localhost  ← 追記しました
150
150
 
151
151
 
152
152
 
@@ -154,7 +154,9 @@
154
154
 
155
155
  下記のとおり編集しました。
156
156
 
157
+ # bind-address = 172.0.0.1  ← comment outしました
158
+
157
- bind-address = 0.0.0.0
159
+ bind-address = 0.0.0.0  ← 追記しました
158
160
 
159
161
 
160
162
 
@@ -171,6 +173,8 @@
171
173
  [ファイアーウォールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h26_48.png)
172
174
 
173
175
  [ポートフォワーディング ルールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h07_53.png)
176
+
177
+ Windows10のファイアーウォールの設定(ローカルポート 6000 受信の規則 & 送信の規則、ローカルポート 6007 受信の規則 & 送信の規則)をしました。
174
178
 
175
179
 
176
180
 

21

少し追記しました。

2018/11/08 23:39

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -158,7 +158,15 @@
158
158
 
159
159
 
160
160
 
161
+ $ curl -s https://api.wordpress.org/secret-key/1.1/salt/
162
+
163
+
164
+
165
+ MySQLの安全性を高くするために「mysql_secure_installation」を実行しました。
166
+
167
+
168
+
161
- /etc/netplan/50-cloud-init.yamlを編集して、固定IPアドレスを設定しました。
169
+ [/etc/netplan/50-cloud-init.yamlを編集して、固定IPアドレスを設定しました。](https://cdn.scrot.moe/images/2018/11/08/2018-11-09_06h40_41.png)
162
170
 
163
171
  [ファイアーウォールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h26_48.png)
164
172
 

20

少し修正しました。

2018/11/08 22:26

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -160,9 +160,9 @@
160
160
 
161
161
  /etc/netplan/50-cloud-init.yamlを編集して、固定IPアドレスを設定しました。
162
162
 
163
+ [ファイアーウォールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h26_48.png)
164
+
163
165
  [ポートフォワーディング ルールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h07_53.png)
164
-
165
- [ファイアーウォールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h26_48.png)
166
166
 
167
167
 
168
168
 

19

微修正しました。

2018/11/07 10:34

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -162,6 +162,8 @@
162
162
 
163
163
  [ポートフォワーディング ルールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h07_53.png)
164
164
 
165
+ [ファイアーウォールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h26_48.png)
166
+
165
167
 
166
168
 
167
169
  [Windows10のMicrosoft Edgeを使ってアクセスすることができました。](https://cdn.scrot.moe/images/2018/11/06/2018-11-07_00h55_09.png)

18

少し修正しました。

2018/11/07 10:33

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -160,6 +160,8 @@
160
160
 
161
161
  /etc/netplan/50-cloud-init.yamlを編集して、固定IPアドレスを設定しました。
162
162
 
163
+ [ポートフォワーディング ルールの設定です。](https://cdn.scrot.moe/images/2018/11/07/2018-11-07_19h07_53.png)
164
+
163
165
 
164
166
 
165
167
  [Windows10のMicrosoft Edgeを使ってアクセスすることができました。](https://cdn.scrot.moe/images/2018/11/06/2018-11-07_00h55_09.png)

17

微修正しました。

2018/11/07 10:14

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -106,7 +106,7 @@
106
106
 
107
107
 
108
108
 
109
- WordPressのapacheの設定を変更しました。
109
+ WordPressのapache2の設定を変更しました。
110
110
 
111
111
  $ cd /etc/apache2/sites-available/
112
112
 

16

さらに編集しました。

2018/11/06 20:26

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -146,8 +146,6 @@
146
146
 
147
147
  下記のとおり追記しました。
148
148
 
149
- #ServerRoot "/etc/apache2"
150
-
151
149
  ServerName localhost
152
150
 
153
151
 
@@ -155,8 +153,6 @@
155
153
  $ sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
156
154
 
157
155
  下記のとおり編集しました。
158
-
159
- # bind-address = 172.0.0.1
160
156
 
161
157
  bind-address = 0.0.0.0
162
158
 

15

編集しました。

2018/11/06 20:22

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -148,7 +148,7 @@
148
148
 
149
149
  #ServerRoot "/etc/apache2"
150
150
 
151
- ServerName localhost   //追記しました
151
+ ServerName localhost
152
152
 
153
153
 
154
154
 
@@ -156,9 +156,9 @@
156
156
 
157
157
  下記のとおり編集しました。
158
158
 
159
- # bind-address = 172.0.0.1   //comment outしました
159
+ # bind-address = 172.0.0.1
160
160
 
161
- bind-address = 0.0.0.0   //追記しました
161
+ bind-address = 0.0.0.0
162
162
 
163
163
 
164
164
 

14

微修正しました。

2018/11/06 20:21

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

13

微修正しました。

2018/11/06 20:19

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

12

その後の詳細です。

2018/11/06 20:18

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -103,3 +103,83 @@
103
103
  [Ping Ubuntu Server 18.10 → Windows 10](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_14h33_07.png)
104
104
 
105
105
  [$ ip addr](https://cdn.scrot.moe/images/2018/11/05/2018-11-03_23h15_05.png)
106
+
107
+
108
+
109
+ WordPressのapacheの設定を変更しました。
110
+
111
+ $ cd /etc/apache2/sites-available/
112
+
113
+ $ sudo cp 000-default.conf 000-wordpress.conf
114
+
115
+
116
+
117
+ $ sudo nano 000-wordpress.conf
118
+
119
+ 下記のとおり編集しました。
120
+
121
+ <Directory /var/www/html/wordpress>
122
+
123
+ Options All
124
+
125
+ AllowOverride All
126
+
127
+ Require all granted
128
+
129
+ </Directory>
130
+
131
+
132
+
133
+ $ sudo a2dissite wordpress.conf
134
+
135
+ $ sudo a2ensite 000-wordpress.conf
136
+
137
+ $ sudo apache2ctl configtest
138
+
139
+ $ sudo a2enmod rewrite
140
+
141
+ $ sudo service apache2 restart
142
+
143
+
144
+
145
+ $ sudo nano /etc/apache2/apache2.conf
146
+
147
+ 下記のとおり追記しました。
148
+
149
+ #ServerRoot "/etc/apache2"
150
+
151
+ ServerName localhost   //追記しました
152
+
153
+
154
+
155
+ $ sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
156
+
157
+ 下記のとおり編集しました。
158
+
159
+ # bind-address = 172.0.0.1   //comment outしました
160
+
161
+ bind-address = 0.0.0.0   //追記しました
162
+
163
+
164
+
165
+ /etc/netplan/50-cloud-init.yamlを編集して、固定IPアドレスを設定しました。
166
+
167
+
168
+
169
+ [Windows10のMicrosoft Edgeを使ってアクセスすることができました。](https://cdn.scrot.moe/images/2018/11/06/2018-11-07_00h55_09.png)
170
+
171
+
172
+
173
+ しかし、下記のとおりエラーメッセージが出ました。
174
+
175
+ データベース接続確立エラー
176
+
177
+ これは、wp-config.php ファイルのユーザー名とパスワードが正しくないか、あるいは localhost のデータベースサーバーに接続できないかのどちらかを意味します。ホスティングサービスのデータベースサーバーがダウンしているかもしれません。
178
+
179
+ ユーザー名とパスワードに間違いはありませんか ?
180
+
181
+ 正しいホスト名を入力しましたか ?
182
+
183
+ データベースサーバーは稼働していますか ?
184
+
185
+ こうした用語が何を意味しているのか分からない場合は、ホスティングサービスに連絡するべきでしょう。助けが必要であればいつでも WordPress サポートフォーラムを訪れることができます

11

微修正しました。

2018/11/06 20:16

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -98,8 +98,8 @@
98
98
 
99
99
  Pingの状況
100
100
 
101
- [Ping Windows10 → Ubuntu Server 18.10](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_14h32_50.png)
101
+ [Ping Windows 10 → Ubuntu Server 18.10](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_14h32_50.png)
102
102
 
103
- [Ping Ubuntu Server 18.10 → Windows10](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_14h33_07.png)
103
+ [Ping Ubuntu Server 18.10 → Windows 10](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_14h33_07.png)
104
104
 
105
105
  [$ ip addr](https://cdn.scrot.moe/images/2018/11/05/2018-11-03_23h15_05.png)

10

微修正しました、

2018/11/06 14:41

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
  $ sudo apt install apche2
42
42
 
43
- $ sudo apt install php-curl php-gd php-xmlrpc libapache2-mod-php nmap
43
+ $ sudo apt install php-curl php-gd php-xmlrpc libapache2-mod-php php-mysql nmap
44
44
 
45
45
 
46
46
 

9

微修正しました。

2018/11/06 03:28

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

8

微修正をしました。

2018/11/05 09:17

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -62,7 +62,7 @@
62
62
 
63
63
  Options All
64
64
 
65
-  AllowOverride All
65
+ AllowOverride All
66
66
 
67
67
  Require all granted
68
68
 

7

補足を追加しました。

2018/11/05 09:16

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -93,3 +93,13 @@
93
93
  Microsoft Edgeを起動して、「http://Ubuntu Server 18.10の固定IPアドレス/wordpress/」
94
94
 
95
95
  ページを開けない。
96
+
97
+
98
+
99
+ Pingの状況
100
+
101
+ [Ping Windows10 → Ubuntu Server 18.10](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_14h32_50.png)
102
+
103
+ [Ping Ubuntu Server 18.10 → Windows10](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_14h33_07.png)
104
+
105
+ [$ ip addr](https://cdn.scrot.moe/images/2018/11/05/2018-11-03_23h15_05.png)

6

微修正しました。

2018/11/05 07:45

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

5

微修正をしました。

2018/11/05 04:50

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -62,7 +62,7 @@
62
62
 
63
63
  Options All
64
64
 
65
- AllowOverride All
65
+  AllowOverride All
66
66
 
67
67
  Require all granted
68
68
 

4

いろいろ修正しました。不慣れですみません。

2018/11/05 04:41

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  Import SSH identity: [from Github]
16
16
 
17
- Github Username *****
17
+ Github Username *****
18
18
 
19
19
 
20
20
 
@@ -86,15 +86,9 @@
86
86
 
87
87
 
88
88
 
89
- Ubuntu Server 18.10で ufw を使用してファイアーウォールを設定しました。
89
+ [Ubuntu Server 18.10で ufw を使用してファイアーウォールを設定しました。](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_13h19_20.png)
90
90
 
91
- https://cdn.scrot.moe/images/2018/11/05/2018-11-05_13h19_20.png
91
+ [ポートフォワーディングの設定です。](https://cdn.scrot.moe/images/2018/11/05/2018-11-05_13h33_38.png)
92
-
93
- ポートフォワーディングの設定です。
94
-
95
- https://cdn.scrot.moe/images/2018/11/05/2018-11-05_12h31_17.png
96
-
97
-
98
92
 
99
93
  Microsoft Edgeを起動して、「http://Ubuntu Server 18.10の固定IPアドレス/wordpress/」
100
94
 

3

具体的な箇所を*****で表示しました。

2018/11/05 04:38

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  Import SSH identity: [from Github]
16
16
 
17
- Github Username usuha
17
+ Github Username *****
18
18
 
19
19
 
20
20
 

2

インストールの方法と現在の状況をまとめました。

2018/11/05 04:31

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,97 @@
5
5
  MySQLの中にあるデータベース(wordpress)にアクセスしてWordPressのインストールをしたいと思っています。
6
6
 
7
7
  よろしくお願いします。
8
+
9
+
10
+
11
+ インストールに使用しましたISOファイルは、ubuntu-18.10-live-server-amd64.isoです。
12
+
13
+
14
+
15
+ Import SSH identity: [from Github]
16
+
17
+ Github Username usuha
18
+
19
+
20
+
21
+ Apache + MySQL + WordPressのインストールについて
22
+
23
+
24
+
25
+ $ sudo apt update
26
+
27
+ $ sudo apt upgrade
28
+
29
+ $ sudo apt install mysql-server mysql-client
30
+
31
+ $ sudo apt install gcc make autoconf pkg-config
32
+
33
+ $ sudo apt install php-dev libc-dev
34
+
35
+ $ sudo apt install libmcrypt-dev
36
+
37
+ $ sudo add-apt-repsitory ppa:ondrej/php
38
+
39
+ $ sudo apt install php7.1-mcrypt
40
+
41
+ $ sudo apt install apche2
42
+
43
+ $ sudo apt install php-curl php-gd php-xmlrpc libapache2-mod-php nmap
44
+
45
+
46
+
47
+ $ wget https://ja.wordpress.org/latest-ja.tar.gz
48
+
49
+ $ cd /var/www/html
50
+
51
+ $ sudo tar xzvf ~/latest-ja.tar.gz
52
+
53
+ $ sudo chown -R www-data.www-data wordpress
54
+
55
+
56
+
57
+ $ sudo nano /etc/apache2/sites-available/wordpress.conf
58
+
59
+ 下記のとおり編集しました。
60
+
61
+ <Directory /var/www/html/wordpress>
62
+
63
+ Options All
64
+
65
+ AllowOverride All
66
+
67
+ Require all granted
68
+
69
+ </Directory>
70
+
71
+
72
+
73
+ $ sudo a2ensite wordpress
74
+
75
+ $ sudo a2enmod rewrite
76
+
77
+ $ sudo systemctl restart apache2
78
+
79
+ $ sudo mysqladmin create wordpress -p
80
+
81
+ Enter password: ←MySQL管理者(root)パスワードを入力します
82
+
83
+ $ sudo apt update
84
+
85
+ $ sudo apt upgrade
86
+
87
+
88
+
89
+ Ubuntu Server 18.10で ufw を使用してファイアーウォールを設定しました。
90
+
91
+ https://cdn.scrot.moe/images/2018/11/05/2018-11-05_13h19_20.png
92
+
93
+ ポートフォワーディングの設定です。
94
+
95
+ https://cdn.scrot.moe/images/2018/11/05/2018-11-05_12h31_17.png
96
+
97
+
98
+
99
+ Microsoft Edgeを起動して、「http://Ubuntu Server 18.10の固定IPアドレス/wordpress/」
100
+
101
+ ページを開けない。

1

VirtualBoxのタグを追加しました。

2018/11/05 04:29

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes