【发布时间】:2020-09-27 07:12:45
【问题描述】:
我在互联网上广泛搜索了答案,但没有成功。几个月前我下载了 xampp,直到最近一切正常。当我无法访问 localhost 时,我注意到了这个问题,所以我进入 xammp 控制面板,看到 apache 已关闭。当我每次收到此消息时单击现在开始 -
13:41:55 [Apache] Error: Apache shutdown unexpectedly.
13:41:55 [Apache] This may be due to a blocked port, missing dependencies,
13:41:55 [Apache] improper privileges, a crash, or a shutdown by another method.
13:41:55 [Apache] Press the Logs button to view error logs and check
13:41:55 [Apache] the Windows Event Viewer for more clues
13:41:55 [Apache] If you need more help, copy and post this
13:41:55 [Apache] entire log window on the forums
对此的常见答案似乎是在 httpd.conf 文件中将端口从 80 更改为 8080,然后在 httpd-ssl.conf 文件中将其从 443 更改为 4433。我已经这样做了,但仍然无法正常工作。当我检查 apache 错误日志时,它说 -
AH00020: Configuration Failed, exiting
值得一提的是,我几天前在本地服务器上安装了 Wordpress,这可能与它有关吗?从重新启动计算机到运行完整的病毒扫描,我已经尝试了所有方法,但似乎没有任何效果。
我使用的是 Windows 10、Apache 2.4 版和 PHP 7。
我现在也尝试在 Shell 中输入命令“httpd -t”,它返回“语法 OK”。这里还有一个来自 apache 错误日志的示例 -
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
[Tue Jun 09 04:15:03.462661 2020] [:emerg] [pid 4160:tid 548] AH00020: Configuration Failed, exiting
[Tue Jun 09 12:54:30.209908 2020] [core:warn] [pid 4000:tid 684] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
[Tue Jun 09 12:54:30.239019 2020] [:emerg] [pid 4000:tid 684] AH00020: Configuration Failed, exiting
感谢您花时间阅读本文,如果有人有任何想法,我们将不胜感激。
【问题讨论】:
-
分享
httpd -t命令输出以供审查。同时分享错误日志