質問編集履歴
5
一連の作業である削除、移動コマンドの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -99,7 +99,53 @@
|
|
99
99
|
|
100
100
|
```
|
101
101
|
|
102
|
+
###削除コマンド
|
103
|
+
```
|
104
|
+
# rm wordpress/* /var/www/html
|
102
105
|
|
106
|
+
rm: `wordpress/wp-admin' を削除できません: Is a directory
|
107
|
+
rm: `wordpress/wp-content' を削除できません: Is a directory
|
108
|
+
rm: `wordpress/wp-includes' を削除できません: Is a directory //問題点
|
109
|
+
rm: `/var/www/html' を削除できません: Is a directory
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
|
114
|
+
###移動コマンド
|
115
|
+
```
|
116
|
+
下記3点は移動されません
|
117
|
+
・wp-admin
|
118
|
+
・wp-content
|
119
|
+
・wp-includes
|
120
|
+
|
121
|
+
|
122
|
+
# mv wordpress/* /var/www/html/
|
123
|
+
|
124
|
+
mv: `/var/www/html/index.php' を上書きしますか? yes
|
125
|
+
mv: `/var/www/html/license.txt' を上書きしますか? yes
|
126
|
+
mv: `/var/www/html/readme.html' を上書きしますか? yes
|
127
|
+
mv: `/var/www/html/wp-activate.php' を上書きしますか? yes
|
128
|
+
mv: `/var/www/html/wp-admin' を上書きしますか? yes
|
129
|
+
mv: `wordpress/wp-admin' から `/var/www/html/wp-admin' へ移動できません: File exists
|
130
|
+
mv: `/var/www/html/wp-blog-header.php' を上書きしますか? yes
|
131
|
+
mv: `/var/www/html/wp-comments-post.php' を上書きしますか? yes
|
132
|
+
mv: `/var/www/html/wp-config-sample.php' を上書きしますか? yes
|
133
|
+
mv: `/var/www/html/wp-content' を上書きしますか? yes
|
134
|
+
mv: `wordpress/wp-content' から `/var/www/html/wp-content' へ移動できません: File exists
|
135
|
+
mv: `/var/www/html/wp-cron.php' を上書きしますか? yes
|
136
|
+
mv: `/var/www/html/wp-includes' を上書きしますか? yes
|
137
|
+
mv: `wordpress/wp-includes' から `/var/www/html/wp-includes' へ移動できません: File exists
|
138
|
+
mv: `/var/www/html/wp-links-opml.php' を上書きしますか? yes
|
139
|
+
mv: `/var/www/html/wp-load.php' を上書きしますか? yes
|
140
|
+
mv: `/var/www/html/wp-login.php' を上書きしますか? yes
|
141
|
+
mv: `/var/www/html/wp-mail.php' を上書きしますか? yes
|
142
|
+
mv: `/var/www/html/wp-settings.php' を上書きしますか? yes
|
143
|
+
mv: `/var/www/html/wp-signup.php' を上書きしますか? yes
|
144
|
+
mv: `/var/www/html/wp-trackback.php' を上書きしますか? yes
|
145
|
+
mv: `/var/www/html/xmlrpc.php' を上書きしますか? yes
|
146
|
+
|
147
|
+
|
148
|
+
```
|
103
149
|
|
104
150
|
|
105
151
|
### 補足情報(FW/ツールのバージョンなど)
|
4
追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -72,11 +72,11 @@
|
|
72
72
|
::1 - - [17/Jan/2020:21:27:52 +0900] "OPTIONS * HTTP/1.0" 200 -
|
73
73
|
|
74
74
|
|
75
|
-
ターミナルでのログ //# less /var/log/httpd/
|
75
|
+
ターミナルでのログ確認 //# less /var/log/httpd/access_log
|
76
|
+
|
76
77
|
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"
|
77
78
|
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"
|
78
79
|
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"
|
79
|
-
119.245.54.234 - - [14/Jan/2020:23:10:49 +0000] "GET / HTTP/1.1" 500 - "-" "Mozi
|
80
80
|
```
|
81
81
|
|
82
82
|
###error_log
|
@@ -88,6 +88,11 @@
|
|
88
88
|
|
89
89
|
|
90
90
|
ターミナルでのログ確認 //# less /var/log/httpd/error_log
|
91
|
+
[Thu Jan 09 23:45:39.149633 2020] [mpm_prefork:notice] [pid 3698] AH00170: caught SIGWINCH, shutting down gracefully
|
92
|
+
[Tue Jan 14 10:57:44.804948 2020] [suexec:notice] [pid 3571] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
|
93
|
+
[Tue Jan 14 10:57:44.830728 2020] [lbmethod_heartbeat:notice] [pid 3571] AH02282: No slotmem from mod_heartmonitor
|
94
|
+
[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.
|
95
|
+
[Tue Jan 14 10:57:44.830770 2020] [http2:warn] [pid 3571] AH02951: mod_ssl does not seem to be enabled
|
91
96
|
[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
|
92
97
|
[Tue Jan 14 10:57:44.892591 2020] [core:notice] [pid 3571] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
|
93
98
|
[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
|
3
ターミナルでのログ確認追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -60,6 +60,7 @@
|
|
60
60
|
|
61
61
|
###access_log
|
62
62
|
```
|
63
|
+
mac内のaccess_logファイルの中身
|
63
64
|
192.168.0.57 - - [17/Jan/2020:12:08:33 +0900] "GET / HTTP/1.1" 302 -
|
64
65
|
192.168.0.8 - - [17/Jan/2020:12:08:33 +0900] "GET / HTTP/1.1" 302 -
|
65
66
|
192.168.0.16 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
@@ -69,14 +70,28 @@
|
|
69
70
|
192.168.0.57 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
70
71
|
192.168.0.61 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
71
72
|
::1 - - [17/Jan/2020:21:27:52 +0900] "OPTIONS * HTTP/1.0" 200 -
|
73
|
+
|
74
|
+
|
75
|
+
ターミナルでのログ //# less /var/log/httpd/error_log
|
76
|
+
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"
|
77
|
+
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"
|
78
|
+
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"
|
79
|
+
119.245.54.234 - - [14/Jan/2020:23:10:49 +0000] "GET / HTTP/1.1" 500 - "-" "Mozi
|
72
80
|
```
|
73
81
|
|
74
82
|
###error_log
|
75
83
|
```
|
84
|
+
mac内のerror_logファイルの中身
|
76
85
|
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
|
77
86
|
[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
|
78
87
|
[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
|
79
88
|
|
89
|
+
|
90
|
+
ターミナルでのログ確認 //# less /var/log/httpd/error_log
|
91
|
+
[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
|
92
|
+
[Tue Jan 14 10:57:44.892591 2020] [core:notice] [pid 3571] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
|
93
|
+
[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
|
94
|
+
|
80
95
|
```
|
81
96
|
|
82
97
|
|
2
エラーログの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -58,6 +58,28 @@
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
+
###access_log
|
62
|
+
```
|
63
|
+
192.168.0.57 - - [17/Jan/2020:12:08:33 +0900] "GET / HTTP/1.1" 302 -
|
64
|
+
192.168.0.8 - - [17/Jan/2020:12:08:33 +0900] "GET / HTTP/1.1" 302 -
|
65
|
+
192.168.0.16 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
66
|
+
192.168.0.32 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
67
|
+
192.168.0.3 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
68
|
+
192.168.0.8 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
69
|
+
192.168.0.57 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
70
|
+
192.168.0.61 - - [17/Jan/2020:15:10:11 +0900] "GET / HTTP/1.1" 302 -
|
71
|
+
::1 - - [17/Jan/2020:21:27:52 +0900] "OPTIONS * HTTP/1.0" 200 -
|
72
|
+
```
|
73
|
+
|
74
|
+
###error_log
|
75
|
+
```
|
76
|
+
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
|
77
|
+
[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
|
78
|
+
[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
|
79
|
+
|
80
|
+
```
|
81
|
+
|
82
|
+
|
61
83
|
|
62
84
|
|
63
85
|
### 補足情報(FW/ツールのバージョンなど)
|
1
AWS語句追加
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
パブリック IPアドレスを入力してもApacheデフォルトページに繋がらない。(HTTP ERROR 500)
|
1
|
+
AWS パブリック IPアドレスを入力してもApacheデフォルトページに繋がらない。(HTTP ERROR 500)
|
body
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
### 前提・問題点
|
2
|
-
- EC2サーバー起動
|
2
|
+
- AWS EC2サーバー起動
|
3
|
-
- セキュリティグループHTTP,HTTPS指定
|
3
|
+
- AWS セキュリティグループHTTP,HTTPS指定
|
4
4
|
- #systemctl restart httpdでapache起動済み
|
5
5
|
|
6
6
|
上記3点を実行済みですが、パブリック IPアドレスを入力してもHTTP ERROR 500と表示されてしまう。
|
@@ -8,7 +8,7 @@
|
|
8
8
|

|
9
9
|
|
10
10
|
###実現したいこと
|
11
|
-
apacheのデフォルトページがEC2のパブリック IPアドレスを入力して表示されるようになっていること
|
11
|
+
apacheのデフォルトページがAWS EC2のパブリック IPアドレスを入力して表示されるようになっていること
|
12
12
|
|
13
13
|
|
14
14
|
|