XAMPP Apache 无法启动,因为 PHP 找不到 VCREDIST140.DLL >=14.29

问题描述 投票:0回答:3

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 pache\logs rror.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
3个回答
1
投票

问题: XAMPP 的 PHP 需要 vcruntime140.dll 版本为 14.29 或更高版本。它在 C:\Windows\System32 cruntime140.dll 中查找此文件,找到版本 14.15,但无法启动。

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

注意:这可能不是正确的解决方案,即。它既不能识别也不能解决根本问题,但它有效,我必须回去工作。


1
投票

您需要在 Windows 中更新 Visual C++ Redistributable Packages

下载此文件这将解决此问题

https://www.mediafire.com/file/j2bggc1ms8geb9l/6_use_this_folder_if_setup_failed.zip/file


© www.soinside.com 2019 - 2024. All rights reserved.