Software⏱️ 2 min read📅 2026-05-31

How to Fix: PHP 7: Missing VCRUNTIME140.dll

Missing VCRUNTIME140.dll error in PHP 7 on Windows.

Quick Answer: Try reinstalling PHP or using a different version that doesn't require the missing DLL.

The VCRUNTIME140.dll error occurs when the PHP installer fails to include this file in the installation directory. This is a common issue on Windows systems, particularly with newer versions of PHP.

🔍 Why This Happens

  • [Cause]

✅ Best Solutions to Fix It

Method 1: Manual Installation of VCRUNTIME140.dll

  1. Step 1: Download the correct version of VCRUNTIME140.dll from Microsoft's official website (here). Make sure to download the x64 version for 64-bit systems.

Method 2: Using a PHP Installer with VC++ Redist

  1. Step 1: Download the Visual C++ Redistributable Package for Visual Studio 2015, 2017 and 2019 (here) or the latest version available. This package includes the VCRUNTIME140.dll file.

🎯 Final Words

By following these steps, you should be able to resolve the VCRUNTIME140.dll error and get your PHP 7 installation working smoothly on Windows.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions