What should I do if apache is installed and cannot be started?

  

There are 45IT.COM users asking Xiaobian, I installed apache but can't start how to do it? Re-installed and re-installed or failed to start?

A: Because Xiaobian does not understand apache, I have collected several possible reasons from the Internet. You should try it one by one and hope to help you.

The first possible reason is that port 80 may be occupied. If a user reports that Thunder is installed, Thunder takes up port 80, causing Apache to fail to start.

The second reason may be caused by a software conflict. The solution is: open the network connection -> TcpIp attribute -> Advanced -> WINS tab Remove the netbios lmhosts check, disable tcp /ip netbios. Then start it should be fine.

The third reason: httpd.conf configuration error

If the apache configuration file httpd.conf is wrong, start it in windows, it will prompt the requested operation has failed, this is More depressed, because it takes a long time to check.

In fact, you can use the command line mode to start apache, and bring the parameters, apache will prompt you which is wrong, and then you can solve the problem, the command is as follows: httpd.exe -w -n "Apache2" ; -k start

There is also a situation that can not be started, it will be able to start for a while, and then can not start, try to enter netsh winsock reset in the run, cmd will prompt to restart, do not care, then apache It can be started.

The above is a small collection method, I hope to help you.

Copyright © Windows knowledge All Rights Reserved