PHP 7: Missing Vcruntime140.Dll

PHP 7: Missing VCRUNTIME140.dll

On the side bar of the PHP 7 alpha download page, it does say this:

VC9, VC11 & VC14
More recent versions of PHP are built with VC9, VC11
or VC14 (Visual Studio 2008, 2012 or 2015 compiler respectively) and
include improvements in performance and stability.

  • The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed

  • The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed

  • The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed

There's been a problem with some of those links, so the files are also available from Softpedia.

In the case of the PHP 7 alpha, it's the last option that's required.

I think that the placement of this information is poor, as it's kind of marginalized (i.e.: it's basically literally in the margin!) whereas it's actually critical for the software to run.

I documented my experiences of getting PHP 7 alpha up and running on Windows 8.1 in PHP: getting PHP7 alpha running on Windows 8.1, and it covers some more symptoms that might crop up. They're out of scope for this question but might help other people.

Other symptom of this issue:

  • Apache not starting, claiming php7apache2_4.dll is missing despite it definitely being in place, and offering nothing else in any log.
  • php-cgi.exe - The FastCGI process exited unexpectedly (as per @ftexperts's comment below)

Attempted solution:

  • Using the php7apache2_4.dll file from an earlier PHP 7 dev build. This did not work.

(I include those for googleability.)

VCRUNTIME140.dll missing

I had the same issue after installing wamp on windows 10.This worked for me.

  • Download VCRUNTIME140.DLL
  • Copy the dll file to C:\Windows\System32 using administrative privileges.
  • Try reinstalling apache.

Bundle PHP7 with electron VCRUNTIME140.dll error

You can use Inno Setup to make an executable that will install your electron app. Using this tool you can install any dependency you need to run the app. Take a look at this answer for more detailed info about or this question if you have an installer that want to run After/Before the setup is complete.

vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16

Looks like I had Microsoft Visual C++ 2017 Redistributable installed alongside Microsoft Visual C++ 2015-2019 Redistributable. When I uninstalled the 2017 version, PHP started playing nicely. Hope this helps people in the same situation!

WAMP won't turn green. And the VCRUNTIME140.dll error

As Oriol said, you need the following redistributables before installing WAMP.

From the readme.txt

BEFORE proceeding with the installation of Wampserver, you must ensure
that certain elements are installed on your system, otherwise
Wampserver will absolutely not run, and in addition, the installation
will be faulty and you need to remove Wampserver BEFORE installing the
elements that were missing.

Make sure you are "up to date" in the redistributable packages VC9,
VC10, VC11, VC13 and VC14 Even if you think you are up to date,
install each package as administrator and if message "Already
installed", validate Repair.

The following packages (VC9, VC10, VC11) are imperatively required to Wampserver 2.4, 2.5 and 3.0, even if you use only Apache and PHP versions VC11 and VC14 is required for PHP 7 and Apache 2.4.17

  • VC9 Packages (Visual C++ 2008 SP1)

    https://www.microsoft.com/en-us/download/details.aspx?id=5582

    https://www.microsoft.com/en-us/download/details.aspx?id=2092

  • VC10 Packages (Visual C++ 2010 SP1)

    https://www.microsoft.com/en-us/download/details.aspx?id=8328

    https://www.microsoft.com/en-us/download/details.aspx?id=13523

  • VC11 Packages (Visual C++ 2012 Update 4)
    The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page:
    http://www.microsoft.com/en-us/download/details.aspx?id=30679

  • VC13 Packages[/b] (Visual C++ 2013)
    The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe

  • VC14 Packages (Visual C++ 2015)
    The two files vcredist_x86.exe and vcredist_x64.exe to be download are on the same page:
    https://www.microsoft.com/en-us/download/details.aspx?id=52685

  • VC Packages x64 (Visual C++ 2017)

https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads



Related Topics



Leave a reply



Submit