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?
-
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 Feb 11 '16 at 04:21
-
how did you solve this problem? – Alejandro Pablo Tkachuk Jul 28 '16 at 19:43
-
1possibly related question: http://stackoverflow.com/questions/30811668 – Ale Aug 10 '16 at 13:21
7 Answers
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.

- 3,435
- 2
- 27
- 43

- 1,300
- 13
- 25
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

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

- 39
- 2
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.

- 9,825
- 16
- 72
- 145
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)

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

- 3,042
- 1
- 29
- 39

- 25
- 1
-
3Do 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