XAMPP 无法启动apache

PHP运行环境XAMPP 启动apache时出现错误,apache无法启动,XAMPP 控制面板底部的活动日志中找到错误信息,如下,即Apache意外关闭错:

 

22:29:10  [Apache] 	Error: Apache shutdown unexpectedly.
22:29:10  [Apache] 	This may be due to a blocked port, missing dependencies,
22:29:10  [Apache] 	improper privileges, a crash, or a shutdown by another method.
22:29:10  [Apache] 	Press the Logs button to view error logs and check
22:29:10  [Apache] 	the Windows Event Viewer for more clues
22:29:10  [Apache] 	If you need more help, copy and post this
22:29:10  [Apache] 	entire log window on the forums
22:29:12  [Apache] 	Problem detected!
22:29:12  [Apache] 	Port 443 in use by ""D:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 3872!
22:29:12  [Apache] 	Apache WILL NOT start without the configured ports free!
22:29:12  [Apache] 	You need to uninstall/disable/reconfigure the blocking application
22:29:12  [Apache] 	or reconfigure Apache and the Control Panel to listen on a different port

从错误信息可以看出443端口被VMware占用,导致apache无法监听443端口。打开XAMPP控制面板的Netstat,发现443端口果然被占用,打开任务管理器将vmware-hostd.exe进程关闭,再次启动apache时启动正常。

若出现类似情况,首先打开Netstat查看端口情况,在做决定

博主水平有限,难免出错,请提出您的意见,咨询QQ:825641026

发表评论