XAMPP Error: Apache shutdown unexpectedly.

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

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值