• 締切済み

Apacheのエラー

前々からApacheが強制終了してしまいます。 寝て起きたら、「問題が発生したため…」というメッセージが出ています。ただApache自体は稼動していてその間もアクセスは可能みたいです。 その問題が発生したためと書かれたダイアログのメッセージ内容を見てみるとntdll.dllが関係してるのかなと思いました。 このntdll.dllについて検索をしてMicrosoftが改善を施したパッチを配布していたみたいなので、入れてみたのですがすでにSP2があたってるとのことで入れられませんでした。 詳細エラーメッセージはこんな感じです szAppName : Apache.exe szAppVer : 2.0.53.0 szModName : ntdll.dll szModVer : 5.1.2600.2180 offset : 00011639 環境は以下の通りです。 【OS】XP ProSP2 【HTTPd】Apache 2.053 + PHP5.1.1 + MySQL4.1.22 どなたか解決策をご教授ください。 ただ毎回出るわけではなく10回アクセスがあったら1回ぐらいです。特定のファイルにアクセスがあったらこういったダイアログメッセージが出るのかと思い、アクセスログを見たところどうもそうではないみたいです。 自分的にもしかしてここがおかしいんじゃないかなと思ったのが、CustomLogでrotatelogsを使用しているのですが、タスクマネージャーを見てみると、今現在の段階でrotatelogs.exeが8個起動しています。定期的にタスクマネージャーを見るとこの数が増えています。この現象について調べたところこれはWindows版Apacheが持つ独特のバグのようでした。 エラーログは以下の通りです。 [notice] Apache/2.0.53 (Win32) PHP/5.1.1 configured -- resuming normal operations [notice] Server built: Feb 10 2005 06:11:34 [notice] Parent: Created child process 5624 [notice] Child 5624: Child process is running [notice] Child 5624: Acquired the start mutex. [notice] Child 5624: Starting 250 worker threads. その「問題が発生したため…」というメッセージが出たときは必ずメッセージがエラーログに記載されています。 ただChildのあとの4桁の数字は毎回違います。

みんなの回答

  • localica
  • ベストアンサー率52% (202/385)
回答No.1

こんにちは >エラーログは以下の通りです エラーなど出ていませんね。 Apacheのログレベルは概ね以下の通りです。   emerg 動作不能な状況(Emergencyの意)   alert 修正しなければ(部分的に)動作できない問題   crit 上記に該当しない動作上の問題(Criticalの意)   error 存在しないファイルへのアクセスなど各種エラー   warn 警告(Warningの意)。設定のミスなどが考えられる場合   notice 起動停止や設定変更された場合など   info あらゆる情報(プロセスの起動や停止など)   debug Apache関連のデバッグに必要な情 ちなみにメッセージから判断すると子プロが排他制御を行ったと言うことでしょう。 親プロセスには影響が無いのでApacheの動作はまず問題ないはずです。 私は同様のメッセージを見たことが無いので此処からは推測に過ぎませんがWindowsはforkできないのでバグっぽい気がします。 #子プロでなく新規プロセスを立ち上げるのでリソースを食いつぶしてるのかも 定期的にPCの再起動を行うとメッセージが出なくなるかもしれません。 基本的にはWindowsXPでWebサービスを立ち上げることが間違いだと思いますが。

maniongou
質問者

お礼

ご回答、ご意見ありがとうございます。 やはりApache側のエラーではなかったんですね。 2,3日それなりに検索してみたのですがWindows版Apache独特のバグのような記事を見つけました。Apacheのバージョンアップすれば改善するのかやってみます。 >基本的にはWindowsXPでWebサービスを立ち上げることが間違いだと思いますが。 それを言ってしまうとおしまいなので、それはほっといてください。鯖構築=Linuxが定着してますが、それは個人の自由だと思うので。

関連するQ&A

  • apache2.0.63のエラーについて

    先日vistaにapache2.0.63とphp5.2.10をインストールしましたが、apacheの ストップとリスタートの際に「the requested operation has failed」とエラーメッセージが出て止まってしまいます。 エラーログは [Tue Jul 21 23:35:06 2009] [notice] Child 5472: Child process is running [Tue Jul 21 23:35:06 2009] [notice] Child 5472: Acquired the start mutex. [Tue Jul 21 23:35:06 2009] [notice] Child 5472: Starting 250 worker threads. [Tue Jul 21 23:35:10 2009] [notice] Parent: Received shutdown signal -- Shutting down the server. [Tue Jul 21 23:35:10 2009] [notice] Child 5472: Exit event signaled. Child process is ending. [Tue Jul 21 23:35:11 2009] [notice] Child 5472: Released the start mutex [Tue Jul 21 23:35:12 2009] [notice] Child 5472: All worker threads have exited. [Tue Jul 21 23:35:12 2009] [notice] Child 5472: Child process is exiting [Tue Jul 21 23:35:15 2009] [notice] Parent: Child process exited successfully. こんな感じです。 どなたか原因がわかる方、ご教授ください。お願いいたします。

  • apacheがたまに起動しない

    Windows2003サーバで 月1回以下のような処理をバッチで実行しています(タスクで起動)。 1.apacheのサービスを停止 httpd.exe -k stop -n Apache2 -w 2.apacheのログを退避 MOVE access.log access.log.YYYYMMDD MOVE error.log error.log.YYYYMMDD 3.apacheのサービス起動 httpd.exe -k start -n Apache2 -w 普段は何も問題なく処理されているのですが、 数ヶ月に1回apacheが起動しない時があります。 ポップアップエラーとして、 *********************************************************** szAppName:httpd.exe szAppVer:2.2.40 szModName:msvcrt.dll szModVer:703790.3959 offset:00037e23 *********************************************************** 上記のようなメッセージが出力されます。 apacheのエラーログ ************************************************************ [Thu Mar 20 02:30:39 2008] [notice] Apache/2.2.4 (Win32) PHP/5.2.3 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations [Thu Mar 20 02:30:39 2008] [notice] Server built: Jan 9 2007 23:17:20 [Thu Mar 20 02:30:39 2008] [notice] Parent: Created child process 1700 [Thu Mar 20 02:30:47 2008] [crit] master_main: create child process failed. Exiting. [Thu Mar 20 02:30:47 2008] [notice] Parent: Forcing termination of child process 36 **************************************************************** Windowsのアプリケーションイベントログ *************************************************************** 2009/04/04 2:20:08 DrWatson 情報 なし 4097 N/A サーバ名 アプリケーション C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe がアプリケーション エラーを起こしました。 04/04/2009 02:20:08.578 にエラーが発生しました。 発生した例外: c0000005 アドレス 77B77E23 (msvcrt!memcpy) 2009/04/04 2:20:08 Application Error エラー (100) 1000 N/A サーバ名 エラー発生アプリケーション httpd.exe、バージョン 2.2.4.0、エラー発生モジュール msvcrt.dll、バージョン 7.0.3790.3959、エラー発生アドレス 0x00037e23 **************************************************************** 何か原因等お分かりになる方はいらっしゃるでしょうか。 PS.あるブログに mod_perl2とActivePerl build 822を使用するとapacheが起動しない と記載がありましたが、 自分の環境は必ず起動しないわけではないので、 現象が違うのかな?と考えています。 微妙にoffsetの値も違いました。 ttp://perl.g.hatena.ne.jp/Uchimata/20090325/1237996439 参考↑

  • 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 他にこのエラーがでなくするにはどのうように改善すればいいのでしょうか?

  • Apacheを起動すると、コマンドプロンプトが立ち上がったままになる。

    ローカルにApacheとphpをインストールしました。 正確に環境を書きますと、 Windows XP Professional、Apache2.2.14、PHP5.2.12 です。 インストール終了後に「スタート」→「Apache HTTP Server 2.2」→「Control Apache Server」→「Start Apache in Console」を選択。 無事にApacheが起動し、PHPが使えるようになりました。 しかし、起動時に立ち上がったコマンドプロンプトが残ったままなのです。 仕方ないので×ボタンを押して消しています。 別にphpの動作に支障はないのですが、できれば勝手に消えて欲しいです。 再インストール以外に解決する手段はあるでしょうか。 参考までに、apache起動から終了までのエラーログを書いておきます。 [日時] [notice] Apache/2.2.14 (Win32) PHP/5.2.12 configured -- resuming normal operations [日時] [notice] Server built: Sep 28 2009 22:41:08 [日時] [notice] Parent: Created child process 516 Apache server shutdown initiated... [日時] [notice] Child 516: Child process is running [日時] [notice] Parent: Received shutdown signal -- Shutting down the server. [日時] [notice] Child 516: Acquired the start mutex. [日時] [notice] Child 516: Starting 64 worker threads. [日時] [notice] Child 516: Exit event signaled. Child process is ending. [日時] [notice] Child 516: Starting thread to listen on port 8000. [日時] [notice] Child 516: Released the start mutex [日時] [notice] Child 516: All worker threads have exited. [日時] [notice] Child 516: Child process is exiting [日時] [notice] Parent: Child process exited successfully.

  • 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.2-tomcat6.0の連携のエラーについて

    apache2.2-tomcat6.0の連携のエラーについて apache、tomcatをインストール後、 apacheのhttpd.confにて以下の手順で設定を行いましたが 「http://localhost/」にアクセスすると tomcatのトップページが表示されず、 「Service Temporarily Unavailable」と表示されてしまいます。 正常に連携させるにはどのようにしたらよろしいでしょうか? 「http://localhost:8080/」にアクセスした場合は tomcatのトップページが正常に表示されます。 ■手順 1、以下の行のコメントアウトを解除。    LoadModule proxy_module modules/mod_proxy.so    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so 2、最後にhttpd.conf末尾に以下の内容を記述。    <Location />     ProxyPass ajp://localhost:8009/    </Location> ■apacheのエラーログには以下のように出力されました。 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.2 for ServerName [Tue Jul 13 21:24:49 2010] [notice] Apache/2.2.15 (Win32) configured -- resuming normal operations [Tue Jul 13 21:24:49 2010] [notice] Server built: Mar 4 2010 11:27:46 [Tue Jul 13 21:24:49 2010] [notice] Parent: Created child process 3164 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.2 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.2 for ServerName [Tue Jul 13 21:24:49 2010] [notice] Child 3164: Child process is running [Tue Jul 13 21:24:49 2010] [notice] Child 3164: Acquired the start mutex. [Tue Jul 13 21:24:49 2010] [notice] Child 3164: Starting 64 worker threads. [Tue Jul 13 21:24:49 2010] [notice] Child 3164: Starting thread to listen on port 80. [Tue Jul 13 21:25:23 2010] [error] (OS 10061)対象のコンピューターによって拒否されたため、接続できませんでした。 : proxy: AJP: attempt to connect to 127.0.0.1:8009 (localhost) failed [Tue Jul 13 21:25:23 2010] [error] ap_proxy_connect_backend disabling worker for (localhost) [Tue Jul 13 21:25:23 2010] [error] proxy: AJP: failed to make connection to backend: localhost

    • ベストアンサー
    • Java
  • Apacheのログ出力方法とローテーションについて

    Apacheのログ出力方法とローテーションについて教えてください。 apacheとweblogicとJavaを使ってweb開発をしています。 現状、httpd.confでエラーログとアクセスログを出力していて、今度からWebLogicの プラグインログ(WLLogFile)を追加出力しようと考えています。 エラーログとアクセスログのログローテーションは別サーバのUNIXクーロンと作成した プログラムを用いて行なっていますが、今度追加するプラグインログをローテーション するとなるとそのプログラムに修正が入ってしまうため、それを避けるためにApacheの httpd.confのrotatelogsでログローテーションを行いたいと思っています。 色々調べて見てエラーログとアクセスログについてはログローテーションは できたのですが、WLLogfileで出力するログについてはローテーションが行なえません。 rotatelogsではそもそもエラーログとアクセスログ以外はローテーションできないのか、 それとも自分のやり方が間違っているのか分からなくなってきてしまったため、質問 させて頂いてます。 ちなみにプラグインログはhttpd.conf内で以下のように設定しています。 #Weblogic Config <IfModule mod_weblogic.c> WebLogicHost サーバのIPアドレス WebLogPort ポート番号 MachExpressoion *.* Debug ERR WLLogFile "C:/Apache/logs/wlproxy.log" ☆やりたいことのイメージ↓ #WLLogFile "|C:/Apache/bin/rotatelogs C:/Apache/logs/wlproxy.log 86400" </IfModule> 環境は以下です。 Apache/2.2.9(Win32) Windows Server 2003 宜しくお願いします。

  • Windows 2003 サーバでApache、PHP5、Mysqlで

    Windows 2003 サーバでApache、PHP5、Mysqlで構築中なのですが 不定期にApacheの子プロセスが再起動してしまいます。 error.logのエラーメッセージは下記の通りです。  [notice] Parent: child process exited with status 128 -- Restarting. 別のサーバ環境(OSは同じで別筺体)でテストをしてみても、現象が発生するものと しないものがあります。 Apache、PHP5、Mysqlのバージョンは色々入れ替えてみたりはしたのですが 現象は収まりません。 何か情報をお持ちの方がいらっしゃいましたら、ご教示をお願い致します。

  • アクセスエラー原因

    ブラウザからhttpで、アパッチ経由WebLogic(on UNIX)にアクセスしたとき、 下記エラーで子プロセスが死んでるようです。 [notice] child pid 4417 exit signal Segmentation fault (11) どんな要因が考えられるのでしょうか? 教えてください。