XAMPP:Apache —— Error: Apache shutdown unexpectedly.,xamppunexpectedly


在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(之前步骤二中修改的);
修改完成后保存。

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

相关内容

    暂无相关文章