vcruntime140.dll 14.0与PHP版本不兼容 [英] vcruntime140.dll 14.0 not compatible with PHP build
问题描述
我已在Windows Server 2016计算机上下载了 PHP 7.4.1 NTS vc15 x86 .我还下载并安装了vc_redist.x86.exe
.
I have downloaded PHP 7.4.1 NTS vc15 x86 on a windows server 2016 machine. I also downloaded and installed vc_redist.x86.exe
.
当我尝试从命令提示符下运行php-cgi时,出现以下错误:
When I try and run php-cgi from the command prompt I get the following error:
PHP警告:"vcruntime140.dll" 14.0与该PHP不兼容 在0行上与Unknown中的14.16链接的内部版本
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
关于如何解决此问题的任何想法?我想我可以从档案中安装旧版本的PHP,但这并不能真正解决问题.
Any ideas on how to resolve this? I guess I could install an older version of PHP from the archives but this doesn't really address the problem.
推荐答案
要解决PHP 7.4.x,需要 Visual Studio 2019的Microsoft Visual C ++ Redistributable ,可以下载 其他工具和框架
Turns out PHP 7.4.x requires Microsoft Visual C++ Redistributable for Visual Studio 2019 which can be downloaded here under the heading Other Tools and Frameworks
这篇关于vcruntime140.dll 14.0与PHP版本不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!