14

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?

Ken4scholars
  • 6,076
  • 2
  • 21
  • 38

7 Answers7

14

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.

Akjun
  • 351
  • 4
  • 13
10

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.
Asif Raza
  • 3,435
  • 2
  • 27
  • 43
thilina Kj
  • 1,300
  • 13
  • 25
7

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

user10496632
  • 463
  • 4
  • 13
3

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

1

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.

VSB
  • 9,825
  • 16
  • 72
  • 145
0

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
  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
dipenparmar12
  • 3,042
  • 1
  • 29
  • 39
  • 3
    Do not play with DLLs this way, it is potentially dangerous for system stability. Putting a DLL in Windows/system32 will affect ALL installed applications. See also https://en.wikipedia.org/wiki/DLL_Hell – Ale Aug 10 '16 at 13:08