Windows Server 2012 apache not starting

apache-2.2windows-server-2012-r2

I'm having difficulty getting apache to run. I is giving me the following error

The request operation has failed

I have disables IIS from the services but when I go to 127.0.0.1 on the browser I can see the Windows Server 2012 Remote Web Access screen.

How can I disable this so that I can run Apache?

UPDATE

I get this error when I try to start Apache using the Apache Start shortcut

An attempt was made to access a socket in a way forbidden by its access permissions : make_sock: could not bind to address 0.0.0.0:80

Best Answer

I have been struggling with this issue since last 2 hours :(

It was common issue of 80 being used by another services. Normally stopping the IIS would be fine but here it wasn't working for me.

There are other solution suggested over the web/SO to use net stop http but that would stop some other services that might be required for normal system functioning. Like the net stop http command give following error

The following services are dependent on the HTTP Service service.
Stopping the HTTP Service service will also stop these services.

   Windows Remote Management (WS-Management)
   Print Spooler

Do you want to continue this operation? (Y/N) [N]:

What worked for me:

While scrolling through the list of services i have found one item that I suspected would be interfering. I've stopped the service and the apache was working now.

Not sure, if this is good solutions for long term but it works fine for me.

Related Topic