質問編集履歴

5

一連の作業である削除、移動コマンドの追加

2020/01/18 13:25

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -200,7 +200,99 @@
200
200
 
201
201
 
202
202
 
203
-
203
+ ###削除コマンド
204
+
205
+ ```
206
+
207
+ # rm wordpress/* /var/www/html
208
+
209
+
210
+
211
+ rm: `wordpress/wp-admin' を削除できません: Is a directory
212
+
213
+ rm: `wordpress/wp-content' を削除できません: Is a directory
214
+
215
+ rm: `wordpress/wp-includes' を削除できません: Is a directory //問題点
216
+
217
+ rm: `/var/www/html' を削除できません: Is a directory
218
+
219
+
220
+
221
+ ```
222
+
223
+
224
+
225
+
226
+
227
+ ###移動コマンド
228
+
229
+ ```
230
+
231
+ 下記3点は移動されません
232
+
233
+ ・wp-admin
234
+
235
+ ・wp-content
236
+
237
+ ・wp-includes
238
+
239
+
240
+
241
+
242
+
243
+ # mv wordpress/* /var/www/html/
244
+
245
+
246
+
247
+ mv: `/var/www/html/index.php' を上書きしますか? yes
248
+
249
+ mv: `/var/www/html/license.txt' を上書きしますか? yes
250
+
251
+ mv: `/var/www/html/readme.html' を上書きしますか? yes
252
+
253
+ mv: `/var/www/html/wp-activate.php' を上書きしますか? yes
254
+
255
+ mv: `/var/www/html/wp-admin' を上書きしますか? yes
256
+
257
+ mv: `wordpress/wp-admin' から `/var/www/html/wp-admin' へ移動できません: File exists
258
+
259
+ mv: `/var/www/html/wp-blog-header.php' を上書きしますか? yes
260
+
261
+ mv: `/var/www/html/wp-comments-post.php' を上書きしますか? yes
262
+
263
+ mv: `/var/www/html/wp-config-sample.php' を上書きしますか? yes
264
+
265
+ mv: `/var/www/html/wp-content' を上書きしますか? yes
266
+
267
+ mv: `wordpress/wp-content' から `/var/www/html/wp-content' へ移動できません: File exists
268
+
269
+ mv: `/var/www/html/wp-cron.php' を上書きしますか? yes
270
+
271
+ mv: `/var/www/html/wp-includes' を上書きしますか? yes
272
+
273
+ mv: `wordpress/wp-includes' から `/var/www/html/wp-includes' へ移動できません: File exists
274
+
275
+ mv: `/var/www/html/wp-links-opml.php' を上書きしますか? yes
276
+
277
+ mv: `/var/www/html/wp-load.php' を上書きしますか? yes
278
+
279
+ mv: `/var/www/html/wp-login.php' を上書きしますか? yes
280
+
281
+ mv: `/var/www/html/wp-mail.php' を上書きしますか? yes
282
+
283
+ mv: `/var/www/html/wp-settings.php' を上書きしますか? yes
284
+
285
+ mv: `/var/www/html/wp-signup.php' を上書きしますか? yes
286
+
287
+ mv: `/var/www/html/wp-trackback.php' を上書きしますか? yes
288
+
289
+ mv: `/var/www/html/xmlrpc.php' を上書きしますか? yes
290
+
291
+
292
+
293
+
294
+
295
+ ```
204
296
 
205
297
 
206
298
 

4

追加

2020/01/18 13:25

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -146,7 +146,9 @@
146
146
 
147
147
 
148
148
 
149
- ターミナルでのログ //# less /var/log/httpd/error_log
149
+ ターミナルでのログ確認 //# less /var/log/httpd/access_log
150
+
151
+
150
152
 
151
153
  119.245.54.234 - - [14/Jan/2020:23:10:48 +0000] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
152
154
 
@@ -154,8 +156,6 @@
154
156
 
155
157
  119.245.54.234 - - [14/Jan/2020:23:10:49 +0000] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
156
158
 
157
- 119.245.54.234 - - [14/Jan/2020:23:10:49 +0000] "GET / HTTP/1.1" 500 - "-" "Mozi
158
-
159
159
  ```
160
160
 
161
161
 
@@ -178,6 +178,16 @@
178
178
 
179
179
  ターミナルでのログ確認 //# less /var/log/httpd/error_log
180
180
 
181
+ [Thu Jan 09 23:45:39.149633 2020] [mpm_prefork:notice] [pid 3698] AH00170: caught SIGWINCH, shutting down gracefully
182
+
183
+ [Tue Jan 14 10:57:44.804948 2020] [suexec:notice] [pid 3571] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
184
+
185
+ [Tue Jan 14 10:57:44.830728 2020] [lbmethod_heartbeat:notice] [pid 3571] AH02282: No slotmem from mod_heartmonitor
186
+
187
+ [Tue Jan 14 10:57:44.830765 2020] [http2:warn] [pid 3571] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
188
+
189
+ [Tue Jan 14 10:57:44.830770 2020] [http2:warn] [pid 3571] AH02951: mod_ssl does not seem to be enabled
190
+
181
191
  [Tue Jan 14 10:57:44.892568 2020] [mpm_prefork:notice] [pid 3571] AH00163: Apache/2.4.41 () PHP/5.4.16 configured -- resuming normal operations
182
192
 
183
193
  [Tue Jan 14 10:57:44.892591 2020] [core:notice] [pid 3571] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

3

ターミナルでのログ確認追加

2020/01/18 02:36

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -122,6 +122,8 @@
122
122
 
123
123
  ```
124
124
 
125
+ mac内のaccess_logファイルの中身
126
+
125
127
  192.168.0.57 - - [17/Jan/2020:12:08:33 +0900] "GET / HTTP/1.1" 302 -
126
128
 
127
129
  192.168.0.8 - - [17/Jan/2020:12:08:33 +0900] "GET / HTTP/1.1" 302 -
@@ -140,6 +142,20 @@
140
142
 
141
143
  ::1 - - [17/Jan/2020:21:27:52 +0900] "OPTIONS * HTTP/1.0" 200 -
142
144
 
145
+
146
+
147
+
148
+
149
+ ターミナルでのログ //# less /var/log/httpd/error_log
150
+
151
+ 119.245.54.234 - - [14/Jan/2020:23:10:48 +0000] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
152
+
153
+ 119.245.54.234 - - [14/Jan/2020:23:10:48 +0000] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
154
+
155
+ 119.245.54.234 - - [14/Jan/2020:23:10:49 +0000] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
156
+
157
+ 119.245.54.234 - - [14/Jan/2020:23:10:49 +0000] "GET / HTTP/1.1" 500 - "-" "Mozi
158
+
143
159
  ```
144
160
 
145
161
 
@@ -148,6 +164,8 @@
148
164
 
149
165
  ```
150
166
 
167
+ mac内のerror_logファイルの中身
168
+
151
169
  Applications/XAMPP/xamppfiles/htdocs/calendar_php/folio/test/mystyle.php' not found or unable to stat, referer: http://localhost/calendar_php/folio/test/index.php
152
170
 
153
171
  [Thu Jan 16 21:21:31.931134 2020] [php7:error] [pid 79127] [client ::1:59088] script '/Applications/XAMPP/xamppfiles/htdocs/calendar_php/folio/test/mystyle.php' not found or unable to stat, referer: http://localhost/calendar_php/folio/test/index.php
@@ -156,6 +174,18 @@
156
174
 
157
175
 
158
176
 
177
+
178
+
179
+ ターミナルでのログ確認 //# less /var/log/httpd/error_log
180
+
181
+ [Tue Jan 14 10:57:44.892568 2020] [mpm_prefork:notice] [pid 3571] AH00163: Apache/2.4.41 () PHP/5.4.16 configured -- resuming normal operations
182
+
183
+ [Tue Jan 14 10:57:44.892591 2020] [core:notice] [pid 3571] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
184
+
185
+ [Tue Jan 14 10:58:07.592332 2020] [:error] [pid 3574] [client 126.72.108.73:53187] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /var/www/html/wp-includes/functions.php on line 1064
186
+
187
+
188
+
159
189
  ```
160
190
 
161
191
 

2

エラーログの追記

2020/01/18 02:31

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
File without changes
test CHANGED
@@ -118,6 +118,50 @@
118
118
 
119
119
 
120
120
 
121
+ ###access_log
122
+
123
+ ```
124
+
125
+ 192.168.0.57 - - [17/Jan/2020:12:08:33 +0900] "GET / HTTP/1.1" 302 -
126
+
127
+ 192.168.0.8 - - [17/Jan/2020:12:08:33 +0900] "GET / HTTP/1.1" 302 -
128
+
129
+ 192.168.0.16 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
130
+
131
+ 192.168.0.32 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
132
+
133
+ 192.168.0.3 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
134
+
135
+ 192.168.0.8 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
136
+
137
+ 192.168.0.57 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
138
+
139
+ 192.168.0.61 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
140
+
141
+ ::1 - - [17/Jan/2020:21:27:52 +0900] "OPTIONS * HTTP/1.0" 200 -
142
+
143
+ ```
144
+
145
+
146
+
147
+ ###error_log
148
+
149
+ ```
150
+
151
+ Applications/XAMPP/xamppfiles/htdocs/calendar_php/folio/test/mystyle.php' not found or unable to stat, referer: http://localhost/calendar_php/folio/test/index.php
152
+
153
+ [Thu Jan 16 21:21:31.931134 2020] [php7:error] [pid 79127] [client ::1:59088] script '/Applications/XAMPP/xamppfiles/htdocs/calendar_php/folio/test/mystyle.php' not found or unable to stat, referer: http://localhost/calendar_php/folio/test/index.php
154
+
155
+ [Thu Jan 16 21:22:01.042699 2020] [php7:error] [pid 78979] [client ::1:59092] script '/Applications/XAMPP/xamppfiles/htdocs/calendar_php/folio/test/mystyle.php' not found or unable to stat, referer: http://localhost/calendar_php/folio/test/index.php
156
+
157
+
158
+
159
+ ```
160
+
161
+
162
+
163
+
164
+
121
165
 
122
166
 
123
167
 

1

AWS語句追加

2020/01/18 02:14

投稿

Ms.yy
Ms.yy

スコア83

test CHANGED
@@ -1 +1 @@
1
- パブリック IPアドレスを入力してもApacheデフォルトページに繋がらない。(HTTP ERROR 500)
1
+ AWS パブリック IPアドレスを入力してもApacheデフォルトページに繋がらない。(HTTP ERROR 500)
test CHANGED
@@ -1,8 +1,8 @@
1
1
  ### 前提・問題点
2
2
 
3
- - EC2サーバー起動
3
+ - AWS EC2サーバー起動
4
4
 
5
- - セキュリティグループHTTP,HTTPS指定
5
+ - AWS セキュリティグループHTTP,HTTPS指定
6
6
 
7
7
  - #systemctl restart httpdでapache起動済み
8
8
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  ###実現したいこと
20
20
 
21
- apacheのデフォルトページがEC2のパブリック IPアドレスを入力して表示されるようになっていること
21
+ apacheのデフォルトページがAWS EC2のパブリック IPアドレスを入力して表示されるようになっていること
22
22
 
23
23
 
24
24