Fix PHP Warning: vcruntime140.dll 14.0 is not compatible with this PHP build

Let’s say you are installing PHP 7.4.x on Windows 10. After installation, you reach CMD to verify the installation using php -v  command. While verifying, you may get the following vcruntime140.dll error:

VCRUNTIME140.dll Error

Following is the error:

Following is the screenshot of the error:

PHP vcruntime140.dll error

Fix vcruntime140.dll Error

To fix the above error, you need to download and install Microsoft Visual C++ Redistributable for Visual Studio 2019.

To download, go to the Microsoft Visual Studio’s official website. After clicking the download link from the website, you will reach the following page:

Download from Microsoft Visual Studio

Now, go to the “All Downloads” section below and click “Other Tools & Frameworks” as shown below:

Other Tools and Frameworks

After clicking “Other Tools and Framework“, download the “Microsoft Visual C++ Redistributable for Visual Studio 2019“.

Before that, do not forgot to select x64 option button for 64-bit Windows 10 OS as shown below:

Download Microsoft Visual C++ Redistributable for Visual Studio 2019

 

After clicking “Download“, the following exe file will download:

Install the exe file. After installing the Visual C++ Redistributable, do not forget to restart the system.

After restarting, go to CMD > right-click “Run as Administrator“.

Now, type php – v again and there won’t be any error and shown below.

PHP vcruntime140.dll error fixed

The above version information shows that you have successfully installed PHP 7.4.x on Windows 10.

Video Tutorial

If you’d like to see video tutorial and fix the issue, then refer the below video,


Read More

Fix NetBeans Installation Error: An unexpected exception in thread main
Fix MySQL No Packages Found, did not find packages in the current bundle suitable for Installation. No Compatible servers were found
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

3 Comments
  • Konstantin
    Posted at 21:54h, 23 September Reply

    Thank you!

  • JB
    Posted at 20:33h, 25 March Reply

    This was so helpful, thank you. It worked just fine for me

  • Benjamin
    Posted at 21:54h, 10 January Reply

    Thanks so much, this is the only solution that worked out for me, keep the good content coming. God bless you

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading