Apache error 0xc000007b

apache-2.4windows-server-2008-r2

I am setting up Apache 2.4 on 64-bit Windows Server 2008 R2. I downloaded the 32-bit zip from Apache Lounge and unzipped, also installed VC10 SP1.

Then, when I tried to run httpd.exe, I got an error:
The application failed to initialize properly(0xc000007b)

The same thing worked on my 64-bit Win7.

Any insights?


EDIT

Ran Depency Walker on httpd.exe. Missing dependencies are:

  • IESHIMS.DLL
  • MF.DLL
  • MFPLAT.DLL
  • MFREADWRITE.DLL
  • WLANAPI.DLL

IESHIMS.DLL: This is also missing in my Win7 httpd. Don't think is the problem.
WLANAPI.DLL: Go to Control Panel > Administrative Tools > Server Manager > Features (left panel) > Add Feature > check Wireless LAN Services to enable it. After that, wlanapi.dll is in the system32 folder.
The rest: These are related to "Media Foundation", but I don't know how to install/enable.
(edit: Some say installing "Desktop Experience" will include Media Foundation, will test)


EDIT2

Apache 2.2 from apache.org is also missing those dlls but runs perfectly fine on the server!!

So, it's not a dependency problem…

Best Answer

Though you are not building your own application, the error (and solution) still apply.

Stack Overflow - The application was unable to start correctly (0xc000007b)

Edit:

Additionally, you can try running the following commands

chkdsk X: /R

sfc /scannow

Related Topic