Cause 1: Port 80 occupied
For example, IIS and thunder. My Apache server cannot be enabled due to Thunder!
Cause 2: Software conflict
If some software is installed, Apache cannot be started, such as dr.com. You can open the network connection-> TCPIP properties-> advanced-> wins tag to remove the LmHosts check of NetBIOS and disable NetBIOS of TCP/IP. and then start it.
Cause 3: httpd. conf configuration error
If the Apache configuration file httpd. conf is incorrect and you start it in windows, the system prompts the requested operation has failed. This is depressing because it takes a long time to check the error.
In fact, you can use the command line mode to start Apache with parameters. Apache will prompt you which sentence is incorrect, and then you can solve the problem accordingly. The command is as follows: httpd.exe-w-n "apache2"-K start
There is another situation:
Even if you start this time, you may fail to start it next time.
Enter netsh Winsock Reset
In a moment, CMD will prompt you to restart. Ignore this. Now Apache can be started.
It's actually a Winsock fix.