ApacheはWindows10のXAMPPコントロールパネルから起動していません

XAMPPコントロールパネルをWindows10にインストールした後、多くのユーザーがApacheの起動中にエラーが発生したと報告しました。この問題は通常、World Wide PublishingServiceなどのプロセスがデバイスの80ポートで実行され続ける場合に発生します。このため、Windows 10オペレーティングシステムではApacheサーバーの実行が許可されていないため、エラーが発生します。

 5 : 38 : 38 PM [ Apache ] Error : Apache shutdown unexpectedly . 5 : 38 : 38 PM [ Apache ] This may be due to a blocked port , missing dependencies , 5 : 38 : 38 PM [ Apache ] improper privileges , a crash , or a shutdown by another method . 5 : 38 : 38 PM [ Apache ] Press the Logs button to view error logs and check 5 : 38 : 38 PM [ Apache ] the Windows Event Viewer for more clues 5 : 38 : 38 PM [ Apache ] If you need more help , copy and post this 5 : 38 : 38 PM [ Apache ] entire log window on the forums 

実際、コンピューターのポート80は、ApacheモジュールがXAMPPで使用するデフォルトのTCP / IPポートでもありました。また、2つの異なるアプリケーションが同じネットワークポートを使用することはできないため、XAMPPのApacheサーバーを起動する前にポートを停止する必要があります。デバイスでもこの問題が発生している場合は、このガイドで説明した簡単な回避策がいくつかあります。それでは、始めましょう。

ApacheがXAMPPコントロールパネルから起動しない

ワールドワイドウェブパブリッシングサービスをクリアすることは、Apacheを再開するための最良のアプローチです。ただし、TCP / IPポート番号を変更するか、必要に応じてサービスを停止することによっても取得できます。したがって、ApacheがXAMPPコントロールパネルで起動しない問題を修正するには、次のすべての可能な方法に従います。

  1. クリアワールドワイドウェブサービス
  2. デフォルトのApacheTCP / IPポートを変更します
  3. World WideWebパブリッシングサービスを停止します

それらを詳しく見てみましょう。

1]ワールドワイドウェブサービスをクリアする

Apacheサービスの開始の問題を解決するには、デバイスからワールドワイドウェブサービスをクリアする必要があります。ただし、開始する前に、このサービスに依存しているアプリがないことを確認してください。

すべて問題がないように思われる場合は、Windowsシステムのコントロールパネルを開きます。

開いたら、[コントロールパネル]を[大きいアイコン]または[小さいアイコン]オプションで表示するように選択して、すべてのコントロールパネルの項目を表示できるようにします。

XAMPPコントロールパネルでApacheが起動しない問題を修正

利用可能な項目から、[プログラムと機能]オプションを選択します。

左側のサイドバーに、[Windowsの機能をオンまたはオフにする]という名前のリンクがあります。それをクリックします。

修正-ApacheがXAMPPコントロールパネルで起動しない

[Windowsの機能]ダイアログボックスで、[インターネットインフォメーションサービス]フィールドを展開します。

次に、World Wide Webサービスに関するチェックボックスをオフにしてから、[ OK ]ボタンをクリックして変更を保存します。

XAMPPコントロールパネルでApacheが起動しない

上記の手順を完了したら、デバイスを再起動します。その後、XAMPPコントロールパネルを開き、Apacheの[スタート]ボタンをクリックします。これで、コンピューターのポート80で実行されるはずです。

2]デフォルトのApacheTCP / IPポートを変更します

何らかの理由で上記の回避策が機能しない場合は、別のTCP / IPポートで実行するようにApacheを構成する必要があります。したがって、次の提案に従ってください。

WindowsデバイスでXAMPPコントロールパネルを開きます。

ApacheモジュールのConfigボタンをクリックします。

ポップアップメニューのリストからApache(httpd.conf)オプションを選択します。

ApacheがXAMPPコントロールパネルから起動しない

以下のメモ帳のページでは、見つける必要がある80を聞きます

検索を簡単にするには、Ctrl + Fショートカットキーを押します。ポップアップメニューで、検索するものを入力します。[ラップアラウンド]チェックボックスをオンにし、[大文字と小文字を区別する]をオフのままにして、[検索]ボタンクリックします。

デフォルトのApacheTCPIPポートを変更します。

それぞれの回線を見つけたら、ポート番号を任意の番号に変更します。

たとえば、ポート121を試すことができます。その場合、TCP / IPポート番号に対応する結果は次のようになります–リッスン121

Ctrl + Sショートカットキーを押して、変更をメモ帳に保存します。

Note: Please note that while using this configuration, you always need to append the TCP/IP port number on the URL you want to connect to your site. For instance, to access the Apache server on your browser, you will need to enter: localhost:121/dashboard rather than localhost/dashboard.

After performing the above steps properly, the starting problem of the Apache in XAMPP would be fixed.

3] Stop World Wide Web Publishing Service

In an alternative way, you need to stop the World Wide Web Publishing Service and change its settings so that the service can only be started manually. So, let’s get started:

In order to stop the World Wide Web Publishing Service, you first need to open Windows Services Manager on your Windows 10 PC.

On the Services screen, search for the World Wide Web Publishing Service option under the Name column.

Once you find, double-click on it to open the properties window.

In the properties window, the General tab opens by default.

On the General tab, locate Startup Type and switch it to Manual. This will let you start the service manually when it is required.

Moving ahead, stop the service running status and click on Apply >OK button.

Now, open the XAMPP Control Panel and click on the Start button to run the Apache server.

That’s it. I hope this guide would help you to fix the starting problem of the Apache service on the XAMPP Control Panel.

デフォルトのApacheTCPIPポートを変更します