Software⏱️ 4 min read📅 2026-06-03

How to Fix: PHP 7: Missing VCRUNTIME140.dll

Missing VCRUNTIME140.dll error in PHP 7 on Windows.

Quick Answer: The issue is caused by a missing Visual C++ Redistributable package. Download and install the correct version (VC14) from the official Microsoft website.

The error 'VCRUNTIME140.dll is missing' occurs when PHP 7 is installed on Windows, causing the program to crash and preventing the CLI from running. This issue affects users who have installed PHP 7 on their Windows system. The frustration of encountering this error can be significant, especially for developers who rely on PHP for their projects.

Fortunately, there are several methods to resolve this issue without installing a DLL file from an external website. By following these steps, you should be able to fix the problem and get your CLI up and running again.

⚠️ Common Causes

  • The primary reason for this error is that the Visual C++ Redistributable package for Visual Studio 2015 or later is missing from your system. This package contains the necessary DLL files required by PHP 7.
  • An alternative cause could be that the VC_redist.x86.exe file, which is a part of the Visual C++ Redistributable package, is not installed on your system.

🔧 Proven Troubleshooting Steps

Installing the Visual C++ Redistributable Package

  1. Step 1: Step 1: Download the Visual C++ Redistributable package for Visual Studio 2015 or later from the official Microsoft website. You can find it by following these steps: 1. Go to the Microsoft download center and search for 'Visual C++ Redistributable package'. 2. Select the version that matches your system (x86 or x64). 3. Click on the download link to start the download.
  2. Step 2: Step 2: Install the Visual C++ Redistributable package by following these steps: 1. Run the downloaded file and follow the installation prompts. 2. Make sure to select the option to install the VC_redist.x86.exe file during the installation process.
  3. Step 3: Step 3: Restart your system after installing the Visual C++ Redistributable package. This will ensure that the necessary DLL files are available for PHP 7.
  4. Step 4: method_2_name
  5. Step 5: Method 2: Installing the VC_redist.x86.exe file separately
  6. Step 6: method_2_steps
  7. Step 7: ["Step 1: Download the VC_redist.x86.exe file from a trusted source, such as Microsoft's official website or a reputable third-party website. Make sure to download the correct version that matches your system (x86 or x64).", 'Step 2: Extract the downloaded zip file and copy the VC_redist.x86.exe file to a location on your system where you can easily access it.', "Step 3: Add the path to the VC_redist.x86.exe file to your system's PATH environment variable. This will allow PHP 7 to find the necessary DLL files."]
  8. Step 8: conclusion
  9. Step 9: By following these steps, you should be able to resolve the 'VCRUNTIME140.dll is missing' error and get your CLI running again. Remember to restart your system after installing any new software or updating your PATH environment variable. If you encounter any further issues, feel free to seek additional assistance from a trusted IT professional.

Alternative Advanced Fix

    🎯 Final Words

    Did this fix your problem?

    If not, try searching for specific error codes.

    🔍 Search Error Database

    ❓ Frequently Asked Questions