【问题标题】:XAMPP Apache can't start because PHP can't find VCREDIST140.DLL >=14.29XAMPP Apache 无法启动,因为 PHP 找不到 VCREDIST140.DLL >=14.29
【发布时间】:2022-06-14 01:22:18
【问题描述】:

XAMPP 控制面板错误日志:

7:08:18 PM  [Apache]    Error: Apache shutdown unexpectedly.
[...]
7:08:18 PM  [Apache]    Press the Logs button to view error logs [...] for more clues

C:\xampp\apache\logs\error.log

[...]
PHP Warning:  'C:\\WINDOWS\\SYSTEM32\\VCRUNTIME140.dll' 14.15 is not compatible with this PHP build linked with 14.29 in Unknown on line 0
[Mon Jun 13 19:07:15.035078 2022] [:emerg] [pid 5580:tid 416] AH00020: Configuration Failed, exiting

【问题讨论】:

    标签: windows xampp vcredist


    【解决方案1】:

    问题: XAMPP 的 PHP 要求 vcruntime140.dll 为 14.29 或更高版本。它在 C:\Windows\System32\vcruntime140.dll 查找这个文件,找到 14.15 版本,启动失败。

    解决方案: 14.32 版本存在于同一个文件夹中,但 PHP 没有找到它,因此我们将该文件 (vcruntime140d.dll) 复制到 C:\xampp\apache\bin,并重命名它到 vcruntime140.dll(删除 d)解决问题。

    注意:这可能不是正确的解决方案,即。它既没有发现也没有解决根本问题,但它确实有效,我必须重新开始工作。

    【讨论】:

      猜你喜欢
      • 2014-03-18
      • 2012-11-29
      • 2018-02-28
      • 1970-01-01
      • 2015-07-13
      • 2015-11-20
      • 2020-10-18
      • 2018-06-18
      • 1970-01-01
      相关资源
      最近更新 更多