XAMPP再インストール後にApacheが起動できない

このQ&Aのポイント
  • XAMPPを再インストールした後、Apacheが起動できなくなりました。復元ポイントへの巻き戻しでも解決せず、エラーメッセージには原因の一部が記載されています。
  • Apacheのエラーメッセージによれば、起動できない原因として、ポートのブロック、依存関係の不足、不正な権限、クラッシュ、または他の方法によるシャットダウンが考えられます。
  • MySQLは正常に起動できているため、原因はApacheに特有のものと考えられます。解決策を知りたいです。
回答を見る
  • ベストアンサー

XAMPP Apache 立ち上がらない…

XAMPPを再インストールしたのですが、Apacheが起動できなくなりました。 現在、システムの復元ポイントへ巻き戻してはいるのですが、やはり起動できません。 XAMPPのコントロールパネルに表示されたエラー内容は以下です。 17:19:08 [Apache] Status change detected: stopped 17:19:08 [Apache] Error: Apache shutdown unexpectedly. 17:19:08 [Apache] This may be due to a blocked port, missing dependencies, 17:19:08 [Apache] improper privileges, a crash, or a shutdown by another method. 17:19:08 [Apache] Press the Logs button to view error logs and check 17:19:08 [Apache] the Windows Event Viewer for more clues 17:19:08 [Apache] If you need more help, copy and post this 17:19:08 [Apache] entire log window on the forums 考えられる原因はなんでしょうか? ちなみにMySQLは起動できています。 よろしくお願いします。

質問者が選んだベストアンサー

  • ベストアンサー
  • t_ohta
  • ベストアンサー率38% (5083/13283)
回答No.3

> [Fri Mar 25 14:28:18.066404 2016] [ssl:warn] [pid 1428:tid 568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name これは HTTPS 用のバーチャルホスト設定で、証明書に記載されているドメイン名と、conf に書いてある ServerName が一致していない時に出るエラーですね。

wiz_nature
質問者

お礼

回答ありがとうございます。 そういうことなんですね。 証明書に記載されているドメイン名の確認方法ってあるのでしょうか?

その他の回答 (2)

  • t_ohta
  • ベストアンサー率38% (5083/13283)
回答No.2

XAMPPのコンパネでは無く、Apacheのエラーログにはどのようなメッセージが出ているか確認しましょう。 XAMPPのコンパネは、あくまでもXAMPPが出したメッセージなので、Apache自体が出したメッセージの方に詳しいエラー内容が出ているはずです。

wiz_nature
質問者

お礼

回答ありがとうございます。 確認したところ以下のエラーが出ていました。 [Fri Mar 25 14:28:15.882187 2016] [ssl:warn] [pid 960:tid 552] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Fri Mar 25 14:28:16.171925 2016] [ssl:warn] [pid 960:tid 552] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Fri Mar 25 14:28:16.488799 2016] [mpm_winnt:notice] [pid 960:tid 552] AH00455: Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.12 configured -- resuming normal operations [Fri Mar 25 14:28:16.488799 2016] [mpm_winnt:notice] [pid 960:tid 552] AH00456: Apache Lounge VC11 Server built: Jul 12 2015 10:56:48 [Fri Mar 25 14:28:16.488799 2016] [core:notice] [pid 960:tid 552] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Fri Mar 25 14:28:16.499800 2016] [mpm_winnt:notice] [pid 960:tid 552] AH00418: Parent: Created child process 1428 [Fri Mar 25 14:28:17.779977 2016] [ssl:warn] [pid 1428:tid 568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Fri Mar 25 14:28:18.066404 2016] [ssl:warn] [pid 1428:tid 568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Fri Mar 25 14:28:18.166702 2016] [mpm_winnt:notice] [pid 1428:tid 568] AH00354: Child: Starting 150 worker threads. エラー内容は443ポートが別のプロセスで利用されているという感じでしょうか。。。 ただ日付けが古く、今現在のエラーではないので、これが直接的な原因ではないかもしれません。

  • h271015
  • ベストアンサー率71% (62/87)
回答No.1

エラーログを見る限りではApacheが使おうとしているポート(デフォルトでは80番ポート)が既に使われているために起動に失敗しているように見えますが、何らかのプログラムが80番ポートを使用していないでしょうか? 以下のようなやり方で確認できると思いますが、最新バージョンのXAMPPでも同じやり方で確認できるかわからなかったので、できなかったらすみません。 http://3dcg.qlookblog.net/20121227.html

wiz_nature
質問者

お礼

回答ありがとうございます。 ポートを調べたところ80と443は両方未使用でした。 一応リンク先を拝見してconfファイルを書き換えてみたんですが 起動できませんでした。。。

関連するQ&A

  • XAMPP の Apache がエラーになります

    Web初心者です。 ホームページ作成してみようと、以前ダウンロードした XAMPP をアップロードするため、 アンインストールし、新規インストールしました。 しかし、ネットで調べ試してみても、 Apache がエラーになってしまい、先に進めません。 Apache の Stat ボタンを押すと、以下の文章が出てきます。 Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues If you need more help, copy and post this entire log window on the forums エラーログとチェックを表示するログのボタンを押します、は、どこなのでしょうか? どうか開始出来ますよう、教えて下さい。 どうぞよろしくお願いします。

  • WindowsXPのパソコンでXAMPP

    こんにちは。 1つ教えてください。 WindowsXPのパソコンでXAMPPを使用したく MergeDoc Projectのサイトから Pleiades日本語化プラグインのZIP FullEdition PHPを ダウンロードしました。Eclipse 4.2 Junoで、ダウンロードファイル名は pleiades-e4.2-php-32bit-jre_20130303.zipとなります。 解凍し、pleiadesフォルダのxampp内のsetup_xampp.batを実行し xampp-control.exeを実行しXAMPP Control Panel v3.1.0 Beta6が 起動しますが、MySQLはStartが出来ますが、ApacheのStartをクリックすると Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Check the "/xampp/apache/logs/error.log" file and the Windows Event Viewer for more clues とエラーになってしまいます。 パソコンを入替え、どうにかXAMPPを起動できるようにしたいのですが XPではEclipse 4.2 Junoは実行できないのでしょうか。 またApacheとMySQLを起動したいのですが、Apacheのエラーの対応を わかる方おられましたら教えて頂けないでしょうか。 どうぞよろしくお願いします。

    • ベストアンサー
    • PHP
  • XAMPP エラーメッセージ

    初めまして、 XAMPP win32-1.8.1-VC9-installer.exeをダウンロードして、 XAMPPのコントロールパネルを開いた途端に、パネルの下の操作状況が文字で表示されるところに、 次のようなエラーメッセージが赤文字で Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash,or a shutdown by another method. Check the"/xampp/apache/logs/error.log"file and the Windows Event Viewer for more clues と表示され、"start" "stop"ボタンがまったく反応しません! XAMPPのファイルなどは一切クリックとか開いたり、Serviceボタンもクリックしていません。 パネルを開いたら、いきなり上記の赤文字が記述されたパネルが出てきてビックリ!!しました。  英文はまったくわからないし…、ネットワークもまた然り…なもんですから、 これからPHPとMySQLを学習するつもりなのですが、この状況の解決策をどなたかお教えください。 OSはWindows7です。よろしくお願いします。  

  • Apache設定変更後、MySQLが動きません。

    XAMPPのv3.1.03.1.0をインストールした直後、Apacheがまず作動しなくなりました。 使用するポートを80→8080に変更したところ、なんとか正常にもどったのですが、今度は入れ替わるようにMySQLがスタートしなくなってしまいました。 再びポートを調べましたが、3306が他で使用されている様子はないため、Apacheの設定を上記のように変更したことと関係があるのでしょうか? ■PCの状況 ・「Windwsファイヤーオール」では、MySqldは許可された状態。 ・「Skype」はアンインストール済み。「IIS」も切っている。 ・過去にMySQLもXAMPPもインストールしたことはない。今回初。 ・3306を他ポートが使用している様子はない。 Apacheの設定を変更したら、連動して必要な動作があるのでしょうか? 勉強をはじめたばかりの初心者なもので、基本的なことも分からずすみません。 また、ほかの方のアドバイスを拝見しているとMySQLを再インストールする方法もあるようですが、その際はまたApacheのポート変更も必要なのでしょうか…? お手数ですがご教授いただけると助かります。 参考までに…コントロールパネルには下記のようなエラーメッセージが出ています。 2:03:51 [mysql] Error: MySQL shutdown unexpectedly. 2:03:51 [mysql] This may be due to a blocked port, missing dependencies, 2:03:51 [mysql] improper privileges, a crash, or a shutdown by another method. 2:03:51 [mysql] Check the "/xampp/mysql/data/mysql_error.log" file 2:03:51 [mysql] and the Windows Event Viewer for more clues

  • 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. どなたか解決方法をご教授いただけないでしょうか? よろしくお願いします。

  • 「XAMPP1.71」apacheが起動しない

    「XAMPP1.71」apache起動不具合について教えてください。 ▼インストール直後 apacheは正常に開始でき、Admin画面も確認出来た。 ▼xampp-control.exeからapache停止ボタンを一度でもクリックすると その後、apacheが二度と起動しなくなります。(起動せずAdminボタンを押せない状態) ※何度かXAMPP自体の再インストールを試みたのですが、ほぼ同じ症状でした。 環境等 ・WindowsXP ・XAMPP1.71 ■下記サイトを参考にしているのですが、うまくいきません。 XAMPPでApachが起動しない場合のわりと汎用的な調査・解決方法まとめ http://www.vippers.net/blog/2009/04/xamppapach.html □1)Apachの強制起動 ・/xampp/apache_start.batを実行すると、下記エラーとなります。 (OS 10048)通常、各ソケット アドレスに対してプロトコル、ネットワーク アドレス、またはポートのどれか 1 つのみを使用できます。 : make_sock: could not bind to address 0.0.0.0:80 □2)ポート80を使っているプロセスの特定 ・netstat -oan TCP 0.0.0.0:80 0.0.0.0:0  LISTENING 5172 □3)ポート80を使っているプロセスからアプリケーション名の特定 httpd.exe □4)ポート80を使用しているアプリケーションの停止 サービス画面より、下記アプリケーションがあやしいと思っているのですが、これを停止すればよいのでしょうか? また、停止するには、どうすればよいのでしょうか? Apache2.2の実行パス、"C:\dev\xampp\apache\bin\httpd.exe" -k runservice

    • ベストアンサー
    • PHP
  • XAMPPで「apacheの起動中にエラーが発生しました」

    XAMPPで「apacheの起動中にエラーが発生しました」と出て、apacheが起動できません。

  • XAMPPでapacheが起動しません。エラーも表示されません。

    XAMPP1.6.3aをインストールし、XAMPPのコントロールパネルのapacheの「開始」をクリックしたのですが、apacheが起動しません コントロールパネル上のウインドウには「apache起動」と表示されていますが、「開始」ボタンはそのまま「開始」の表示です。(apacheが正常に起動されていれば、「停止」となると思います。) 「開始」ボタンの左に「起動」の表示もありません。 またエラー表示もありませんでした。 よくあるパターンのSkypeやポートの問題ではないと思います。(Skypeはインストールされていません。) そこで、xampp\apache\bin\apache.exe から直接起動させてみたところ、一瞬何かのウインドウが表示され、すぐにそれが閉じてしまいました。 エラーの表示もありません。 OSはWin2000です。 何が原因か、また解決策のアドバイスをお願いします。 宜しくお願い致します。

    • 締切済み
    • PHP
  • xamppでapacheが起動できません。

    はじめまして。早速質問させてください。 Dドライブにxamppをインストールしてapacheを使用していました。 しかし、最近急にapacheが起動しなくなってしまいました。 xamppのコントロールパネルでapacheを起動させようとしても busy... error: Apache service not started [-1] と表示されます。 http://nuru.me/blogs/2009/04/xamppapach.php のサイトに書かれている /xampp/apache_start.bat を実行しても、コマンドプロンプトには Diese Eingabeforderung nicht waehrend des Running beenden Bitte erst bei einem gewllten shutdoen Apache 2 is starting ... Syntax error on line 195 of D:/xampp/apache/conf/httpd.conf: Illegal override option AAA Apache konnte nicht gestartet werden Apache could not be started 続行するには何かキーを押してください ... と表示されてしまうだけです。 何か良い解決方法がないでしょうか? もしありましたら教えてください。よろしくお願いいたします。

  • XAMPPでApacheが起動しない

    よろしくお願いします。 ローカルPCのOSはWin7の32bitで、xampp-win32-1.7.4-VC6をインストールしました。 Apacheが起動しなくて困ってます。 保存先は、c:\pg\xamppでxampp\xamppのようにはしてません。 Apacheのerror.logは以下です。 (↓エラーログ) [Tue Apr 05 19:14:50 2011] [notice] Digest: generating secret for digest authentication ... [Tue Apr 05 19:14:50 2011] [notice] Digest: done [Tue Apr 05 19:14:51 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations [Tue Apr 05 19:14:51 2011] [notice] Server built: Oct 18 2010 01:58:12 [Tue Apr 05 19:14:51 2011] [crit] (22)Invalid argument: Parent: Failed to create the child process. [Tue Apr 05 19:14:51 2011] [crit] (OS 6)ハンドルが無効です。 : master_main: create child process failed. Exiting. [Tue Apr 05 19:14:51 2011] [notice] Parent: Forcing termination of child process 36 MySQLですが、mysql_startを使用すると以下のコマンドが出ました。  ↓ [Warning]Can't create test file C:\pg\xampp\mysql\data\PC.lower-test [Note]Plugin 'FEDERATED' is disabled. [ERROR]Plugin 'InnoDB' init function returned error. [ERROR]Plugin 'InnoDB' registration as a STORAGE ENGINE failed. [ERROR]Unkown/unsupported storage engin: InnoDB [ERROR]Aborting [Note]mysql\bin\mysql:Shutdown complete どうかよろしくお願いします。

    • ベストアンサー
    • PHP

専門家に質問してみよう