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.
Reinstalling the program may fix this problem. vcruntime140. dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vender for support.
Step 1: Click on Start and select Settings. Step 2: Select Apps from the menu tiles. Step 3: Click on the app causing the error and select Uninstall. Step 4: Restart your computer, then reinstall the app by downloading it from the vendor's website or Microsoft store.
So to fix the VCRuntime140 dll or MSVCP140 dll error we need to install the correct library (Microsoft Visual C++ Redistributable package) on your computer. Now there are two libraries that you can install. One for 64-bit applications and one for 32-bit applications.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With