XAMPP:Apache —— Error: Apache shutdown unexpectedly.

在XMAPP中启动Apache出现的异常

[Apache]    Attempting to start Apache app...
[Apache]    Status change detected: running
[Apache]    Status change detected: stopped
[Apache]    Error: Apache shutdown unexpectedly.
[Apache]    This may be due to a blocked port, missing dependencies, 
[Apache]    improper privileges, a crash, or a shutdown by another method.
[Apache]    Press the Logs button to view error logs and check
[Apache]    the Windows Event Viewer for more clues
[Apache]    If you need more help, copy and post this
[Apache]    entire log window on the forums

Apache启动报 Error: Apache shutdown unexpectedly.

解决方法:

1.这个问题比较常见, 通常是80、443端口被占用,这里使用程序提供的设置功能设置一下端口,具体需要点击程序界面上的【config】按钮。
这里写图片描述

2.在新窗口中点击【server and por setting】,在设置窗口上输入对应的对应的端口,需要记得通常情况下80端口及443端口可以一起修改。
这里写图片描述
这里写图片描述
这里同时将两个设置为801和4431(记住修改后的端口,接下来会用到)

3.配置好后点击保存,返回到主页面,接下来修改程序下的配置文件,点xampp后的config,需要注意的是80端口及443端口需要分别设置。
这里写图片描述
点击Apache (httpd.conf)打开配置文件后,直接使用搜索功能找到80端口的配置,将端口修改为801(之前步骤二中修改的);
点击Apache (httpd-ssl.conf)打开配置文件后,直接使用搜索功能找到443端口的配置,将端口修改为4431(之前步骤二中修改的);
修改完成后保存。
80端口配置文件
443端口配置文件

4.再次启动Apache,如果还是报相同的错误继续按照以上步骤修改端口。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值