XAMPP Apache报如下错误时:
22:15:30 [Apache] Problem detected!
22:15:30 [Apache] Port 80 in use by "Unable to open process" with PID 4!
22:15:30 [Apache] Apache WILL NOT start without the configured ports free!
22:15:30 [Apache] You need to uninstall/disable/reconfigure the blocking application
22:15:30 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
PID4是系统的服务(World Wide Web Publishing Service),占用了80端口,解决方法:
方法1:
修改apache端口
方法2:
结束系统服务
services.msc->kill World Wide Web Publishing Service
另外,为防止下次开机再出现这种情况,在属性里可设置成手动启动。