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服务使用的端口被占用了,Apache默认端口号80
方法:
修改httpd.conf的Listen:80 为Listen:81(或其他)
修改httpd-ssl.conf的Listen:443为Listen:4433(或其他)
重启Apache
如果方法一修改了监听端口还是出现这样的问题
方法二
原因:DocumentRoot目录不存在或者误删
解决方法:修改DocumentRoot
方法三
负责他人的配置文件替换 自己的
实在不行就重装xampp