Use this command:
netstat -o -n -a | findstr 0.0:80 to check the PID of the process using port 80. If port 80 is free, nothing will appear in result. If any process is running on port 80, you will get its details.
Now you can check from task manager the process running under this PID.
To cope with this problem either:
- Kill the process which already uses port 80 if it is unnecessary
- Make necessary changes for this other process to shift it to some other port
- Run apache (XAMPP) on any other port, except port 80.
To change the port in apache, open httpd.conf file (present in your XAMPP installation directory) and modify this line:
Listen 80 to whatever port you find suitable. Usually 8080 is used in case 80 is busy (8080 may be busy as well, you need to test for a port which is free and good to use using the command given above).