Link: http://blog.tanggaowei.com/2007/06/80apacheapacheservcieapache.html
If port 80 is occupied, Apache's servcie may not be successfully installed during Apache installation. If the apache service cannot be correctly installed, an error such as "the service of apache2 cannot be found" is reported when you execute the start or restart command, and then the execution fails. In this case, if the httpd. conf file is modified and the port is changed to another value (such as 8088), the apache service cannot be started correctly.
In this case, you can modify the httpd. conf file, run the Apache installation file, and then select the repair function. If httpd. conf is modified correctly, APACHE service will be correctly installed after the modification is complete, and apahce HTTP server will be able to start normally.
Summary:
1. Install apahce;
2. Modify httpd. conf and change the port to another unused port number;
3. Run the Apache installation file again and select repair to execute.
Of course, there is also an effective way, not only do you not need to change the default port number, but also find out who is the "murderer" of the preemption port. Link: http://www.x2blog.cn/Maxwin? Tid = 18000
1. Start-> Run-> cmd, and enter netstat-o-;
2. Open the Windows Task Manager and check-> select the PID column;
3. Find the PID that the process occupies port 80 and solve it.
Note: The above information is reprinted from the Internet.