码迷,mamicode.com
首页 > Web开发 > 详细

xampp 启动apache 提示:Error: Apache shutdown unexpectedly.

时间:2018-12-31 11:21:56      阅读:826      评论:0      收藏:0      [点我收藏+]

标签:and   missing   方法   eth   tst   ima   保存   not   help   

无法启动xampp的apache提示错误:

下午 8:32:21  [Apache]       Error: Apache shutdown unexpectedly.

下午 8:32:21  [Apache]       This may be due to a blocked port, missing dependencies,

下午 8:32:21  [Apache]       improper privileges, a crash, or a shutdown by another method.

下午 8:32:21  [Apache]       Press the Logs button to view error logs and check

下午 8:32:21  [Apache]       the Windows Event Viewer for more clues

下午 8:32:21  [Apache]       If you need more help, copy and post this

下午 8:32:21  [Apache]       entire log window on the forums

进入dos下启动,D:\share tools\xampp\apache\bin>httpd.exe,发现提示配置文件的错误如下:

技术分享图片 

可能是是因为存放的目录名(share  tools)中间有空格,导致无法有效访问配置文件。

解决方法:

将xampp移动到D盘目录下,再次启动。依然报错同样的错误,再次进入dos下启动,提示信息如下:

技术分享图片 

提示内容,很明显ssl端口443被暂用。

验证443端口是否真的被占用:

netstat –ano | findstr 443

查询结果如下:

技术分享图片 

可以看到443端口果然被占用,接下来就好办了,只要修改httpd-ssl.conf中的Listen 443端口号,保存重新启动即可。

httpd-ssl.conf配置文件的存放路径:

D:\xampp\apache\conf\extra

重启启动apache,就可以启动成功,如下:

 技术分享图片

 

xampp 启动apache 提示:Error: Apache shutdown unexpectedly.

标签:and   missing   方法   eth   tst   ima   保存   not   help   

原文地址:https://www.cnblogs.com/JcHome/p/10201452.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!