httpd.exe - Application error while starting apache in xampp server in window 8.1

M Kumar picture M Kumar · Apr 20, 2017 · Viewed 25.7k times · Source

I got

httpd.exe - system error, The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing while starting Apache server.

I'm using windows 8.1 machine.

To solve that problem i copy .dll files in window32 directory and when i restart the xampp, got new error.

httpd.exe - Application error The application was unable to start correctly (0xc000007b). Click OK to close application

Port 80 is not actually being used. I have already reinstalled it many times but same error occurs.

I'm trying to install latest xampp version (7.1.1)

Answer

magicandre1981 picture magicandre1981 · Apr 20, 2017

The api-ms-win-crt-runtime-l1-1-0.dll is part of the Visual C++ 2015 Redistrutable package.

You copied a wrong DLL (wrong CPU archtecture), which generates the error

0xc000007b - STATUS_INVALID_IMAGE_FORMAT - {Bad Image} %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.

Delete the wrong DLL again, download and install the Microsoft Visual C++ 2015 Redistributable Update 3.