簡體   English   中英

XAMPP Apache 無法啟動,因為 PHP 找不到 VCREDIST140.DLL >=14.29

[英]XAMPP Apache can't start because PHP can't find VCREDIST140.DLL >=14.29

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

問題: 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)這解決了這個問題。

注意:這可能不是正確的解決方案,即。 它既沒有發現也沒有解決根本問題,但它有效,我必須重新開始工作。

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

下載這個文件這將解決這個問題

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM