I guess so many developers have this problem on running the apache server which comes with XAMPP on Port 80.
Here is the scenario:
Most of the Web development companies use IIS and Apache for the client’s development. If the system has both the servers, only one server can run on port 80 at any time. Starting the IIS on port 80 is simple and straightforward which is not in the scope of this post and stopping the IIS and start the apache is not so easy.
Whenever you stop the IIS and try to start the apache, it will not start. We always suspect that the port 80 is used other servers.
Running the ‘netstat -ano | findstr 0:80’ command from the command line revealed that port 80 is being used by PID 4.
There are multiple blogs which advised to change the registry and none of it works. Finally found out that there is a service called “Web Deployment Agent Service” which actually stops the apacce runs on port 80.
Here are the steps to stop it.
1. Open up the services screen (Right click “Computer” from either your desktop or start menu, then “Manage”. Once the window has opened, expand “Services and Applications” and select “Services”).
2. On the services screen there should be one called “Web Deployment Agent Service”, if this is running, double click it and stop the service.
3. Finally, change the startup type to “Disabled”.
Enjoy and Happy programming
Now if you try to run apache on port 80, it should start fine!