vcruntime140.dll 14.0 not compatible with PHP build

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.


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


I had the same problem. After I downloaded the latest version of Microsoft Visual C++, I successfully solved this problem. You can download it here . https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads


if you are using xampp, go to apache folder C:/xampp/apache/bin... rename the vcruntime140.dll to vcruntime140.dll,old hope it works..