xampp开启Apache报错。
Error: Apache shutdown unexpectedly.
14:35:24 [Apache] This may be due to a blocked port, missing dependencies,
14:35:24 [Apache] improper privileges, a crash, or a shutdown by another method.
14:35:24 [Apache] Press the Logs button to view error logs and check
14:35:24 [Apache] the Windows Event Viewer for more clues
14:35:24 [Apache] If you need more help, copy and post this
14:35:24 [Apache] entire log window on the forums
原因是,Apache服务的端口被占用了,默认端口为80。
解决方案
xampp
打开httpd.conf文件,将Listen:80修改为Listen:81,或其他端口。
httpd.conf
打开httpd-ssl.conf文件,将Listen:443修改为Listen:4433,或其他端口。
httpd-ssl.conf
重启Apache。