質問編集履歴

4

実行内容追記

2022/07/08 06:49

投稿

necopantiii
necopantiii

スコア30

test CHANGED
File without changes
test CHANGED
@@ -27,6 +27,29 @@
27
27
  「``` curl: (52) Empty reply from server ```」と出力
28
28
  * webコンテナ内で「``` curl localhost:8080 ```」で確認したところ
29
29
  「 ``` curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused ```」と出力
30
+ * 「 ``` cat /var/log/httpd/error_log ```」でエラーを確認
31
+ ```
32
+ [Fri Jul 08 06:04:34.046176 2022] [suexec:notice] [pid 32] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
33
+ [Fri Jul 08 06:04:34.062713 2022] [lbmethod_heartbeat:notice] [pid 33] AH02282: No slotmem from mod_heartmonitor
34
+ [Fri Jul 08 06:04:34.062844 2022] [http2:warn] [pid 33] 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.
35
+ [Fri Jul 08 06:04:34.134886 2022] [core:error] [pid 33] (2)No such file or directory: AH00099: could not create /run/httpd/httpd.pid.xUvxAq
36
+ [Fri Jul 08 06:04:34.134923 2022] [core:error] [pid 33] AH00100: httpd: could not log pid to file /run/httpd/httpd.pid
37
+ [Fri Jul 08 06:04:45.026097 2022] [suexec:notice] [pid 34] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
38
+ [Fri Jul 08 06:04:45.042733 2022] [lbmethod_heartbeat:notice] [pid 35] AH02282: No slotmem from mod_heartmonitor
39
+ [Fri Jul 08 06:04:45.042820 2022] [http2:warn] [pid 35] 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.
40
+ [Fri Jul 08 06:04:45.054556 2022] [core:error] [pid 35] (2)No such file or directory: AH00099: could not create /run/httpd/httpd.pid.kFmi8f
41
+ [Fri Jul 08 06:04:45.054574 2022] [core:error] [pid 35] AH00100: httpd: could not log pid to file /run/httpd/httpd.pid
42
+ ```
43
+ * 「mkdir /run/httpd」実行
44
+ * 「``` docker-compose stop ```」 後 「``` docker-compose up ```」
45
+ * 再びコンテナ内で「 ``` cat /var/log/httpd/error_log ```」
46
+ ```
47
+ [Fri Jul 08 06:34:20.907690 2022] [suexec:notice] [pid 30] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
48
+ [Fri Jul 08 06:34:20.920239 2022] [lbmethod_heartbeat:notice] [pid 31] AH02282: No slotmem from mod_heartmonitor
49
+ [Fri Jul 08 06:34:20.920397 2022] [http2:warn] [pid 31] 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.
50
+ [Fri Jul 08 06:34:20.954746 2022] [mpm_prefork:notice] [pid 31] AH00163: Apache/2.4.53 () configured -- resuming normal operations
51
+ [Fri Jul 08 06:34:20.954780 2022] [core:notice] [pid 31] AH00094: Command line: '/usr/sbin/httpd'
52
+ ```
30
53
 
31
54
  ## 追記
32
55
  OSのアップデートもしていたので追記します

3

やったことを追加

2022/07/08 05:40

投稿

necopantiii
necopantiii

スコア30

test CHANGED
File without changes
test CHANGED
@@ -23,8 +23,10 @@
23
23
  * docker上は全てのコンテナがrunning中
24
24
  * 各コンテナにも入れるがChromeで「localhost:8080」をみようとすると
25
25
  「llocalhost からデータが送信されませんでした。」が表示される
26
- * 「``` curl http://localhost:8080 ```」で確認したところ
26
+ * 「``` curl localhost:8080 ```」で確認したところ
27
27
  「``` curl: (52) Empty reply from server ```」と出力
28
+ * webコンテナ内で「``` curl localhost:8080 ```」で確認したところ
29
+ 「 ``` curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused ```」と出力
28
30
 
29
31
  ## 追記
30
32
  OSのアップデートもしていたので追記します

2

OS情報を追記

2022/07/08 03:58

投稿

necopantiii
necopantiii

スコア30

test CHANGED
File without changes
test CHANGED
@@ -25,3 +25,8 @@
25
25
  「llocalhost からデータが送信されませんでした。」が表示される
26
26
  * 「``` curl http://localhost:8080 ```」で確認したところ
27
27
  「``` curl: (52) Empty reply from server ```」と出力
28
+
29
+ ## 追記
30
+ OSのアップデートもしていたので追記します
31
+ OS:「Mac Monterey」
32
+ チップ: 「Apple M1」

1

エラーメッセージが違ったため修正

2022/07/08 01:18

投稿

necopantiii
necopantiii

スコア30

test CHANGED
@@ -1 +1 @@
1
- webでlocalhostが「localhost で接続拒否されました。」と表示されてしまう
1
+ webでlocalhostが「localhost からデータ送信されませんでした。」と表示されてしまう
test CHANGED
@@ -22,6 +22,6 @@
22
22
  ## 現状
23
23
  * docker上は全てのコンテナがrunning中
24
24
  * 各コンテナにも入れるがChromeで「localhost:8080」をみようとすると
25
- 「localhost で接続拒否されました。」が表示される
25
+ 「llocalhost からデータ送信されませんでした。」が表示される
26
26
  * 「``` curl http://localhost:8080 ```」で確認したところ
27
27
  「``` curl: (52) Empty reply from server ```」と出力