12
votes

I have a problem when trying to install apache 2.4 on my windows 10. It always shows the error that VCRUNTIME140.dll is missing. I have checked other threads and found out that installing the 2015 Visual c++ Redistributables x64/x86 always solves the problem but I have both installed and I still have this problem. Are there any other solutions?

7
Did you restart after installation? Restart is required. Did you install BOTH the x64 and x86? Link to the "other threads" you've referenced.Clarus Dignus
how did you solve this problem?Alejandro Pablo Tkachuk
possibly related question: stackoverflow.com/questions/30811668Ale

7 Answers

9
votes

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.
9
votes

You need to install Microsoft Visual C++ 2015 Redistributable Update 3 RC, please find the link here, choose between the 32bit or the 64bit.

Reinstall the apache 2.4 and error should gone.

5
votes

Download and install the proper version of Microsoft Visual C++ 2015 Redistributable Update 3 RC regarding your hardware architecture (x86 / x64). Use the link below:
Microsoft Visual C++ 2015 Redistributable Update 3 RC

2
votes

On Windows 6 X64, got an error 500 on any PHP files, installing the 2015 Visual c++ Redistributables x64 solved my problem.

1
votes

If you are using Microsoft Visual C/C++ and you have already downloaded VCRUNTIME140.DLL, Go to Project Properties->Configuration Properties-> C/C++ -> Code Generation, Set Runtime Library Multi-threaded (/MT)

-1
votes

I'v already had VC 2015 Redist on my PC but files were not copied into Windows\System32.

So I copied missing files directly to this folder. A thing that I should mention is since I compiled my application in X86 mode I copied them from

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x86

not

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x64

I know that this solution is not the ideal one, but it was a workaround for my case.

-1
votes
  1. Remove apache 2.4 from your pc
  2. Download VCRUNTIME140.dll from this link
  3. Copy VCRUNTIME140.dll file and paste it inside to Windows/System32
  4. Finally reinstall apache and run