XAMPP Error: Apache shutdown unexpectedly.This may be due to a blocked port, missing dependencies...
来源:互联网 发布:淘宝助理下载 编辑:程序博客网 时间:2024/05/18 12:34
问题:通过XAMPP架站时,Apache启动不成功,报错如下:
10:02:35 [Apache] Error: Apache shutdown unexpectedly.
10:02:35 [Apache] This may be due to a blocked port, missing dependencies,
10:02:35 [Apache] improper privileges, a crash, or a shutdown by another method.
10:02:35 [Apache] Press the Logs button to view error logs and check
10:02:35 [Apache] the Windows Event Viewer for more clues
10:02:35 [Apache] If you need more help, copy and post this
10:02:35 [Apache] entire log window on the forums
这个问题比较常见,出现这个错误的原因是,XAMPP的设置的常用端口,包含http和https的端口都被占用了,解决办法:
cmd 通过运行apache/bin/httpd.exe 打印如下log:
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: could not bind to address 0.0.0.0:443
或者后面是80端口被占用
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: could not bind to address 0.0.0.0:80 或[ : : ]:80
解决方法一:最快的处理方法就是修改端口号:
1、443端口被占用,apache无法监听443端口,该如何解决呢?
在/xampp/apache/conf/extra/httpd-ssl.conf
把Listen 443 修改为 444(可自定义)
2、80端口被占用,apache无法监听80端口,该如何解决呢?
在/xampp/apache/conf/extra/httpd.conf
把Listen 80 修改为 88 (可自定义)
如果配置了vhosts的话请把httpd-vhosts.conf 中端口改为88(同上端口号)
解决方法二:最直接的方法是关闭占用80、443端口的进程:
1. 通过cmd中netstat -ano 看看本机80、 443端口被占用没 ----- --这里 可能会被其他程序占用如iis、虚拟机等
2.通过cmd中打印tasklist,查找占用80、443端口的进程名称。
3.taskkill /pid 端口号 杀掉此进程名称,XAMPP重启apache即可。
综上所述第一种方法推荐使用,第二种每次启动都或多或少的再次遇到。
- XAMPP Error: Apache shutdown unexpectedly.This may be due to a blocked port, missing dependencies...
- XAMPP报错This may be due to a blocked port, missing dependencies
- windows7 x86_64系统安装xampp后apache无法启动,报Error: Apache shutdown unexpectedlyThis may be due to a blocked
- XAMPP Error: Apache shutdown unexpectedly
- XAMPP APACHE Error: Apache shutdown unexpectedly
- Error "The form cannot be rendered. This may be due to a misconfiguration......"的解决方案
- XAMPP Error: Apache shutdown unexpectedly. 解决思路
- XAMPP的错误Error: Apache shutdown unexpectedly.
- XAMPP Error: Apache shutdown unexpectedly. 解决思路
- XAMPP Error: Apache shutdown unexpectedly. 解决思路
- XAMPP Error:Apache shutdown unexpectedly 解决方案
- XAMPP:Apache shutdown unexpectedly
- Xampp Apache shutdown unexpectedly
- This may be due to a corruption of the heap
- This may be due to a corruption of the heap!
- Inteface Buidler can't determine the type of "xx.xib" this may be due to a missing SDK.
- XAMPP Apache 启动异常- Error: Apache shutdown unexpectedly.
- 运行XAMPP中的apache出现 Error: Apache shutdown unexpectedly
- BZOJ 1477: 青蛙的约会 扩展欧几里得
- MacOS 开发
- ORA-06512: At "SYS.DBMS_XSTREAM_ADM_INTERNAL" (文档 ID 1956932.1)
- 用Python学《微积分B》(Fourier级数)
- 四种强制类型转换的总结(const_cast、static_cast、dynamic_cast、reinterpreter_cast)
- XAMPP Error: Apache shutdown unexpectedly.This may be due to a blocked port, missing dependencies...
- java设计模式-策略模式
- mount命令--linux管理磁盘分区和目录节点的强大工具
- java读取Excel
- JSP内置对象
- Qt初入门“Hello Qt!”
- 谈谈Java开发中的对象拷贝
- index.js
- 基于string下标和replace函数替换string中的字符