teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

試した内容を補足

2018/01/07 21:42

投稿

progman
progman

スコア66

title CHANGED
File without changes
body CHANGED
@@ -18,4 +18,34 @@
18
18
  httpdを何度か再起動すると
19
19
 
20
20
  error_log:[Sun Jan 07 21:10:41.810355 2018] [so:warn] [pid 6379] AH01574: module rewrite_module is already loaded, skipping
21
- が出ているので、rewrite のモジュールはhttpdに反映されているとおもいます。
21
+ が出ているので、rewrite のモジュールはhttpdに反映されているとおもいます。
22
+
23
+ .htaccess はcakePHPで提供されるもので、私が意図的に編集、作成したものでなく中身はわかりませんが、移行されています。
24
+
25
+
26
+ 調査のために、
27
+ RewriteLog /tmp/rewrite.log
28
+ RewriteLogLevel 9
29
+ という記述をhttpd.conf
30
+ 以下のように、include に続いて追記
31
+
32
+ Include conf.modules.d/*.conf
33
+
34
+ RewriteLog /tmp/rewrite.log
35
+ RewriteLogLevel 9
36
+
37
+ すると
38
+
39
+
40
+ Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
41
+
42
+ 1月 08 01:06:33 testhost httpd[6808]: [Mon Jan 08 01:06:33.610291 2018] [so:warn] [pid 6808] AH01574: module r
43
+ 1月 08 01:06:33 testhost httpd[6808]: AH00526: Syntax error on line 59 of /etc/httpd/conf/httpd.conf:
44
+ 1月 08 01:06:33 testhost httpd[6808]: Invalid command 'RewriteLog', perhaps misspelled or defined by a module
45
+ 1月 08 01:06:33 testhost systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
46
+ 1月 08 01:06:33 testhost kill[6809]: kill: cannot find process ""
47
+ 1月 08 01:06:33 testhost systemd[1]: httpd.service: control process exited, code=exited status=1
48
+ 1月 08 01:06:33 testhost systemd[1]: Failed to start The Apache HTTP Server.
49
+ -- Subject: Unit httpd.service has failed
50
+
51
+ となり、apacheを再起動できないので、はずしています。