Web関連/XAMP/インストール
トラブルシューティング
【日時】
2014/12/03
【環境】
OS:Windows7 Home Premium SP1
【問題】
■手順
XAMPPをインストールして起動後、ApacheのStartボタンを押したらエラーが表示された。
■エラー内容
23:05:11 [Apache] Error: Apache shutdown unexpectedly.
23:05:11 [Apache] This may be due to a blocked port, missing dependencies,
23:05:11 [Apache] improper privileges, a crash, or a shutdown by another method.
23:05:11 [Apache] Press the Logs button to view error logs and check
23:05:11 [Apache] the Windows Event Viewer for more clues
23:05:11 [Apache] If you need more help, copy and post this
23:05:11 [Apache] entire log window on the forums
【原因】
80番ポートが既に使用されている。
【対処】
コマンドプロンプトを起動して以下のコマンドを実行し、使用ポートを確認する。
netstat -oan -p tcp
アクティブな接続
- -表示例----
プロトコル ローカル アドレス 外部アドレス 状態 PID TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1000 TCP 0.0.0.0:123 0.0.0.0:0 LISTENING 2000 TCP 0.0.0.0:444 0.0.0.0:0 LISTENING 3000 TCP 0.0.0.0:555 0.0.0.0:0 LISTENING 4000 TCP 0.0.0.0:666 0.0.0.0:0 LISTENING 5000
上記は「0.0.0.0:80(ポート80番)」を「プロセスID 1000」が使用していることが分かる。
対処法は以下2つ。
- ポート80番を使用しているプロセスを落とす。
- Apacheで使用するポート番号を変更する。
Apacheで使用するポート番号を変更する場合の手順:
XAMPPのApacheの右にある"Config"ボタン→"Apache(httpd.conf)"
Listen 80
→Listen XXXX(使用されていない任意のポート番号)
に変更してApacheを再起動する。
※再起動しても何も変わらない場合は、XAMPP自体を一度落として再起動してから、Apacheを起動すると直ることがあります。
【参考】
【日時】
2014/06/07
【環境】
OS:Windows7 Home Premium SP1
【問題】
■手順
xampp-win32-1.8.3-4-VC11-installer.exeをインストールしようとしたら警告が発生した。
■エラー内容
Important! Because an activated User Account Control (UAC) on your sytem some functions of XAMPP are possibly restricted. With UAC please avoid to install XAMPP to C:\Program Files (x86) (missing write permissions). Or deactivate UAC with msconfig after this setup.
【原因】
すでにXAMPPが入っているため。
【対処】
コントロールパネルからXAMPPをアンインストールしてください。
【参考】
Yahoo!知恵袋
【日時】
2014/06/07
【環境】
OS:Windows7 Home Premium SP1
【問題】
■手順
XAMPP Control Panelを起動後、Apacheのstartボタンを押すと以下のようなエラーが発生する。
■エラー内容
22:42:33 [Tomcat] Problem detected!
22:42:33 [Tomcat] Port 8005 in use by ""C:\Program Files (x86)\VMware\VMware Server\tomcat\bin\Tomcat6.exe" //RS//VMwareServerWebAccess"!
22:42:33 [Tomcat] Tomcat WILL NOT start without the configured ports free!
22:42:33 [Tomcat] You need to uninstall/disable/reconfigure the blocking application
22:42:33 [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port
22:42:33 [Tomcat] Problem detected!
22:42:33 [Tomcat] Port 8009 in use by ""C:\Program Files (x86)\VMware\VMware Server\tomcat\bin\Tomcat6.exe" //RS//VMwareServerWebAccess"!
22:42:33 [Tomcat] Tomcat WILL NOT start without the configured ports free!
22:42:33 [Tomcat] You need to uninstall/disable/reconfigure the blocking application
22:42:33 [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port
【原因】
Port 8005はVMwareのTomcat6.exeが使用している。
指定しているポートが空いていないため、Tomcatが開始できません。
ブロックしているアプリケーションをアンインストール/停止/(ポートの)再設定が必要です。
または、TomcatとControl Panelに異なるポート番号を再設定してください。
【対処】
【参考】
- 最終更新:2014-12-03 23:34:39