Windows环境下初次打开XAMPP启动Apache服务,可能出现一下错误
12:19:49 [Apache] Problem detected!
12:19:49 [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 6084!
12:19:49 [Apache] Apache WILL NOT start without the configured ports free!
12:19:49 [Apache] You need to uninstall/disable/reconfigure the blocking application
12:19:49 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
从错误提示里很容易看出,443端口被VMware相关服务占用,解决办法如下:
1、打开XAMPP Control Panel,点击Netstart
2、在netstart里找到使用443端口的服务,记住它的PID
3、打开任务管理器进入资源监视器
4、找到之前记住的那个PID所对应的服务,将其关闭
5、重新在XAMPP中启动Apache服务即可
注:其它类似这样因为端口被占用而无法启动相关服务的问题,也可以用此方法解决