XAMPP 错误: Apache 意外停止 可能问题端口冲突或被占用,

21:15:53 [main] Executing "c:尀users尀hp尀appdata尀local尀temp尀rar$exa0.046尀xampp尀"21:18:52 [Apache] Attempting to start Apache app...21:18:52 [Apache] Status change detected: running21:18:59 [Apache] Status change detected: stopped21:18:59 [Apache] 错误: Apache 意外停止.21:18:59 [Apache] 可能问题端口冲突或被占用, 21:18:59 [Apache] improper privileges, a crash, or a shutdown by another method.21:18:59 [Apache] 请检查日志文件 "/xampp/apache/logs/error.log"日志文件 "/xampp/apache/logs/error.log"内容为:求助?怎么启动Apache?
2026年09月20日 11:22
有1个网友回答
网友(1):

点击右侧的Netstat查看下80和443是不是被占用了

1.80Port被占用的情况(这是最常见的)两步解决
1)\XAMPP\apache\conf\ 这个目录下的httpd.conf 文件中 所有80换成82(或88等随意)
2)\XAMPP\apache\conf\extra\ 这个目录下的 httpd-vhosts.conf 所有80换成82(或88等随意)
如此这般80被占就解决了

2.443被占情况
\XAMPP\apache\conf\extra\ 这个目录下的 httpd-ssl.conf 所有443换成445(或其他等随意)