• 締切済み

Apacheのエラーログのログレベルについて

Apache HTTPD/2.4.7で以下の設定を行っています。 ErrorLog "logs/error_log" LogLevel alert しかし、設定を有効にしても”alert”レベルより低いレベルのログがエラーログに出力されてしまいます。 --内容-- [Wed Dec 25 16:35:44.602828 2013] [mpm_event:notice] [pid 10971:tid 139866365474560] AH00494: SIGHUP received. Attempting to restart [Wed Dec 25 16:35:44.672589 2013] [mpm_event:notice] [pid 10971:tid 139866365474560] AH00489: Apache/2.4.7 (Unix) configured -- resuming normal operations [Wed Dec 25 16:35:44.672687 2013] [core:notice] [pid 10971:tid 139866365474560] AH00094: Command line: '/usr/local/apache-httpd/bin/httpd' 2つ目の[]内に記載されているのがログレベルであるという認識なのですが、なぜ、”alert”レベルで設定しているにもかかわらず、"notice"レベルのログが出力されているのでしょうか? 設定方法が悪いのでしょうか?ログレベルの表記の認識が違うのでしょうか?

みんなの回答

noname#189141
noname#189141
回答No.1

http://httpd.apache.org/docs/2.4/mod/core.html#loglevel > 注 > ファイルにログを出力する場合、notice レベルのメッセージは抑制されず、すべてログに出力されます。 しかし syslog を使用している場合は、 これは当てはまりません。 syslogに出して上げましょう。やり方は検索すれば出てくるはずです。

sainte
質問者

お礼

60点

関連するQ&A

  • Apache2.4.18 エラーについて

    Apache2.4.18で以下のエラーがでるのですが どのように直せば以下のエラーがでなくなりますでしょうか? [Sat Jan 02 03:54:16.698225 2016] [mpm_winnt:notice] [pid 4456:tid 364] AH00428: Parent: child process 5632 exited with status 255 -- Restarting. [Sat Jan 02 03:54:16.979025 2016] [mpm_winnt:notice] [pid 4456:tid 364] AH00455: Apache/2.4.18 (Win64) PHP/5.6.16 configured -- resuming normal operations [Sat Jan 02 03:54:16.979025 2016] [mpm_winnt:notice] [pid 4456:tid 364] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 11:13:29 [Sat Jan 02 03:54:16.979025 2016] [core:notice] [pid 4456:tid 364] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24' [Sat Jan 02 03:54:16.979025 2016] [mpm_winnt:notice] [pid 4456:tid 364] AH00418: Parent: Created child process 4792 [Sat Jan 02 03:54:17.930627 2016] [mpm_winnt:notice] [pid 4792:tid 256] AH00354: Child: Starting 150 worker threads.

  • Apache2.4.18 エラーについて

    Apache2.4.18 エラーについて Apacheは公式サイトからダウンロードし、 http://www.apachelounge.com/download/ windows7 64bit版の最新版を使っています Perl 5.20.2もPHP 5.6.16も使用しています エラーは以下になります [Sat Jan 02 20:31:07.726526 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00428: Parent: child process 6784 exited with status 255 -- Restarting. [Sat Jan 02 20:31:07.851327 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00455: Apache/2.4.18 (Win64) PHP/5.6.16 configured -- resuming normal operations [Sat Jan 02 20:31:07.851327 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 11:13:29 [Sat Jan 02 20:31:07.851327 2016] [core:notice] [pid 5656:tid 368] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24' [Sat Jan 02 20:31:07.851327 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00418: Parent: Created child process 652 [Sat Jan 02 20:31:08.506528 2016] [mpm_winnt:notice] [pid 652:tid 272] AH00354: Child: Starting 150 worker threads. [Sat Jan 02 20:31:15.313140 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00428: Parent: child process 652 exited with status 255 -- Restarting. [Sat Jan 02 20:31:15.406740 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00455: Apache/2.4.18 (Win64) PHP/5.6.16 configured -- resuming normal operations [Sat Jan 02 20:31:15.406740 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 11:13:29 [Sat Jan 02 20:31:15.406740 2016] [core:notice] [pid 5656:tid 368] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24' [Sat Jan 02 20:31:15.406740 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00418: Parent: Created child process 6312 [Sat Jan 02 20:31:15.905941 2016] [mpm_winnt:notice] [pid 6312:tid 272] AH00354: Child: Starting 150 worker threads. 色々と調べた結果以下二点をしたのですがエラーは解決されませんでした extra\httpd-mpm.confに以下を追加 # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxConnectionsPerChild: maximum number of connections a server process serves <IfModule mpm_winnt_module> ThreadsPerChild 150 MaxConnectionsPerChild 0 AcceptFilter http none AcceptFilter https none EnableSendfile off EnableMMAP off ThreadStackSize 8388608 </IfModule> httpd.confにある # Server-pool management (MPM specific) #Include conf/extra/httpd-mpm.conf コメントアウトを消す Include conf/extra/httpd-mpm.conf 他にこのエラーがでなくするにはどのうように改善すればいいのでしょうか?

  • XAMPPでApacheが起動しなくなりました

    今までは正常に動いていたのですが、本日コントロールパネルからSTARTを押しても起動しなくなり、検索しても原因が分からず困っています。 XAMPPのヴァージョンは3.1.0です。 ポートは80から88に変更しています。 SSLポートも443から448に変更しています。 かいたPHPをチェックできずに困っています。 どうか知恵をお貸しいただけないでしょうか。 エラーログ↓ AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::8152:4232:347e:ba23. Set the 'ServerName' directive globally to suppress this message AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::8152:4232:347e:ba23. Set the 'ServerName' directive globally to suppress this message [Fri Jul 12 20:47:53.855307 2013] [ssl:warn] [pid 6968:tid 496] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Jul 12 20:47:53.932312 2013] [mpm_winnt:notice] [pid 6968:tid 496] AH00354: Child: Starting 150 worker threads. [Fri Jul 12 21:01:43.221104 2013] [core:warn] [pid 6276:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Jul 12 21:01:43.769136 2013] [ssl:warn] [pid 6276:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Jul 12 21:01:50.857541 2013] [mpm_winnt:notice] [pid 6276:tid 252] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations [Fri Jul 12 21:01:50.857541 2013] [mpm_winnt:notice] [pid 6276:tid 252] AH00456: Server built: Aug 18 2012 12:41:37 [Fri Jul 12 21:01:50.857541 2013] [core:notice] [pid 6276:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Fri Jul 12 21:01:51.159558 2013] [mpm_winnt:notice] [pid 6276:tid 252] AH00418: Parent: Created child process 3716 [Fri Jul 12 21:01:52.763650 2013] [ssl:warn] [pid 3716:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Jul 12 21:01:53.089669 2013] [mpm_winnt:notice] [pid 3716:tid 264] AH00354: Child: Starting 150 worker threads.

  • xamppのapacheがダウンロードできない。

    プログラミング初心者です。 XamppにてapacheとMySQLをダウンロードしようと思ったのですが。 apacheがエラーメッセージも出ず、起動しません。 14:15:35 [Apache] Attempting to start Apache app... この状態で止まっています。 Host80も使っている様子はありません。 スカイプもISSも起動していません。 [Tue Oct 13 13:51:15.135748 2015] [ssl:warn] [pid 4140:tid 392] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Tue Oct 13 13:51:15.463348 2015] [mpm_winnt:notice] [pid 4140:tid 392] AH00354: Child: Starting 150 worker threads. [Tue Oct 13 13:51:21.625359 2015] [mpm_winnt:notice] [pid 6068:tid 380] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Tue Oct 13 13:51:23.653363 2015] [mpm_winnt:notice] [pid 4140:tid 392] AH00364: Child: All worker threads have exited. [Tue Oct 13 13:51:23.902963 2015] [mpm_winnt:notice] [pid 6068:tid 380] AH00430: Parent: Child process 4140 exited successfully. errorlogもこの状態から動きません。 どなたか詳しい方がおられましたら、回答よろしくお願いいたします。

  • CentOS7.2 Apacheエラーログについて

    CentOS7.1を使用していましたが2日ほど前にCentOS7.2にアップデートしました。 アップデート後からApacheのエラーログが頻繁に出力されるようになりました。 CentOS7.2にアップデート後のエラーログの内容ですが、 [Fri Dec 25 13:15:11.570131 2015] [mpm_prefork:notice] [pid 1141] AH00170: caught SIGWINCH, shutting down gracefully [Fri Dec 25 14:05:21.758346 2015] [suexec:notice] [pid 5588] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Fri Dec 25 14:05:21.900927 2015] [:warn] [pid 5588] NSSSessionCacheTimeout is deprecated. Ignoring. [Fri Dec 25 14:05:24.576333 2015] [:error] [pid 5588] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected localhost as virtual name. [Fri Dec 25 14:05:24.863090 2015] [auth_digest:notice] [pid 5588] AH01757: generating secret for digest authentication ... [Fri Dec 25 14:05:24.863542 2015] [lbmethod_heartbeat:notice] [pid 5588] AH02282: No slotmem from mod_heartmonitor [Fri Dec 25 14:05:24.865464 2015] [:warn] [pid 5588] NSSSessionCacheTimeout is deprecated. Ignoring. [Fri Dec 25 14:05:29.052357 2015] [mpm_prefork:notice] [pid 5588] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_auth_gssapi/1.3.1 mod_auth_kerb/5.4 mod_fcgid/2.3.9 mod_nss/2.4.6 NSS/3.19.1 Basic ECC PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations [Fri Dec 25 14:05:29.052393 2015] [core:notice] [pid 5588] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Fri Dec 25 14:05:29.375102 2015] [:error] [pid 5949] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected localhost as virtual name. [Fri Dec 25 14:05:29.383065 2015] [:error] [pid 5947] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected localhost as virtual name. [Fri Dec 25 14:05:29.420995 2015] [:error] [pid 5946] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected localhost as virtual name. [Fri Dec 25 14:05:29.425088 2015] [:error] [pid 5950] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected localhost as virtual name. となっています。 最後の、 Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected localhost as virtual name. のログがHTTPにアクセスが入るたびに出ているようです。 Apacheのhttpd.confの設定はバーチャルドメインで複数サイト運営していますが アクセス自体は問題なくできています。 (サーバー証明書は入れていません) 1日調べてみましたが、原因がわからず質問させていただきました。

  • XAMPPでApacheが起動できない

    WordPressについて勉強し始めたばかりの初心者で、 自分(ローカル)の環境でセットアップをしようとしています。 XAMPPのコントロールパネルの設定で、Apacheのスタートボタンを 押しても反応せず、エラーが出ます。 Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. エラーログは下記の通り; [Mon May 12 11:03:06.845172 2014] [ssl:warn] [pid 4612:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Mon May 12 11:03:07.500373 2014] [ssl:warn] [pid 4612:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Mon May 12 11:03:07.609573 2014] [mpm_winnt:notice] [pid 4612:tid 264] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 configured -- resuming normal operations [Mon May 12 11:03:07.609573 2014] [mpm_winnt:notice] [pid 4612:tid 264] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01 [Mon May 12 11:03:07.609573 2014] [core:notice] [pid 4612:tid 264] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Mon May 12 11:03:07.734373 2014] [mpm_winnt:notice] [pid 4612:tid 264] AH00418: Parent: Created child process 6872 [Mon May 12 11:03:09.590776 2014] [ssl:warn] [pid 6872:tid 276] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Mon May 12 11:03:10.199177 2014] [ssl:warn] [pid 6872:tid 276] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Mon May 12 11:03:10.308378 2014] [mpm_winnt:notice] [pid 6872:tid 276] AH00354: Child: Starting 150 worker threads. どなたか解決方法をご教授いただけないでしょうか? よろしくお願いします。

  • apacheとtomcatの連携

    wpでapache2.2とtomcat5の連携を行いたいのですが apacheを再起動すると下記のエラーが出ます。 何が悪いですか? httpd.confの最後の行を削除すると起動ができるようになります。 #Include conf/extra/httpd-proxy.conf apacheのエラーログ: [Wed Sep 16 06:09:13 2009] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Sep 16 06:09:13 2009] [notice] Apache/2.2.13 (Win32) configured -- resuming normal operations [Wed Sep 16 06:09:13 2009] [notice] Server built: Aug 6 2009 15:50:50 [Wed Sep 16 06:09:13 2009] [notice] Parent: Created child process 1712 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName [Wed Sep 16 06:09:13 2009] [notice] Child 1712: Child process is running [Wed Sep 16 06:09:13 2009] [notice] Child 1712: Acquired the start mutex. [Wed Sep 16 06:09:13 2009] [notice] Child 1712: Starting 64 worker threads. [Wed Sep 16 06:09:13 2009] [notice] Child 1712: Starting thread to listen on port 80. [Wed Sep 16 06:23:14 2009] [notice] Parent: Received restart signal -- Restarting the server. [Wed Sep 16 06:23:14 2009] [notice] Child 1712: Exit event signaled. Child process is ending. httpd.exe: Syntax error on line 487 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Syntax error on line 7 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/extra/httpd-proxy.conf: </Location> without matching <Location> section [Wed Sep 16 06:23:14 2009] [warn] (OS 995)スレッドの終了またはアプリケーションの要求によって、I/O 処理は中止されました。 : winnt_accept: Asynchronous AcceptEx failed. [Wed Sep 16 06:23:15 2009] [notice] Child 1712: Released the start mutex [Wed Sep 16 06:23:16 2009] [notice] Child 1712: All worker threads have exited. [Wed Sep 16 06:23:16 2009] [notice] Child 1712: Child process is exiting httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName [Wed Sep 16 06:23:36 2009] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Sep 16 06:23:36 2009] [notice] Apache/2.2.13 (Win32) configured -- resuming normal operations [Wed Sep 16 06:23:36 2009] [notice] Server built: Aug 6 2009 15:50:50 [Wed Sep 16 06:23:36 2009] [notice] Parent: Created child process 1728 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName [Wed Sep 16 06:23:36 2009] [notice] Child 1728: Child process is running [Wed Sep 16 06:23:36 2009] [notice] Child 1728: Acquired the start mutex. [Wed Sep 16 06:23:36 2009] [notice] Child 1728: Starting 64 worker threads. [Wed Sep 16 06:23:36 2009] [notice] Child 1728: Starting thread to listen on port 80.

    • ベストアンサー
    • Java
  • Apache2.4 event_mpm設定について

    CentOS6.4にたにApache2.4をインストールし、event_mpmを使用しようと考えています。 Apache2.4のインストールまでは無事に終了しました。 次に、event_mpmについて下記を参照しながら設定をしようとしたのですが、設定ファイルが見当たりません。 http://blog.matsumoto-r.jp/?p=2996 デフォルト値 StartServers 3 MinSpareThreads 75 MaxSpareThreads 250 ThreadsPerChild 25 MaxRequestWorkers 400 MaxConnectionsPerChild 0 find で探しても出てきません。 Apache2.4でevent_mpmの設定ファイルはどこにあるのかご教授願います。 宜しくお願い致します。

  • Apacheが突然停止した

    OS:windows2003 Oracle:9i Apache:apache_2.0.43-win32-x86-no_ssl.exe イベントビューアのエラー内容 ・ソース内容:Apache Sverice ・イベント:3299 ・説明 THe Apache service named d:\oracle\pra92\Apache\Apache\apache.exe reported the following error >>>曜日 月 日 hh:mm:ss 2010 [warn] pid file d:\oracle\pra92\Apache\Apache\logs\httpd.pid overwritten -- Unclean shutdown of previous Apache run? <<< before the error.log file could be opened. More information may be available in the error.log file.

  • 突然apacheが落ちて起動しなくなる

    質問させていただきます。 WEBサーバとして稼動しているサーバからhttpdダウンのアラートを検出し、サーバにログインしてservice httpd restartを行うと Starting httpd: [w mon dd hh:mm:ss YYYY] [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Pre-configuration failed [FAILED] となりapacheが起動しません。 /etc/sysconfig/httpdにて HTTPD=/usr/sbin/httpd.worker の行をコメントアウトしてhttpdを再起動するとhttpd自体は立ち上がります。 しかしながら原因が不明なため、どなたか原因についてお分かりになりましたら教えてください。 以上、よろしくお願いいたします。