Vcruntime140.Dll 14.0 Not Compatible with PHP Build

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!

Why is this error showing up in command prompt?

One of your php packages is outdated. You can try updating your packages however I think it is unlikely that you will run into any problems. Personally I would ignore this warning. Notice that it is only a "warning" rather than an error. This is quite common.

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.)

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.

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.



Related Topics



Leave a reply



Submit