vcruntime140.dll 14.0 not compatible with PHP build

試著忘記壹切 提交于 2020-01-15 03:18:07

问题


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.

When I try and run php-cgi from the command prompt I get the following error:

PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0

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.


回答1:


Turns out PHP 7.4.x requires Microsoft Visual C++ Redistributable for Visual Studio 2019 which can be downloaded here:

https://visualstudio.microsoft.com/downloads/

Then scroll down to Other Tools and Frameworks



来源:https://stackoverflow.com/questions/59414170/vcruntime140-dll-14-0-not-compatible-with-php-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!