Monday, October 28, 2013

Solving Port 80 application issues (Apache, wamp, xampp, or other services) in windows

Wamp Server not Starting
Xampp Server not Starting
Apache not Starting


Below I will share some tips for solving the problems of starting application above or other applications which are using port 80.

some times you get trouble in starting any application which uses port 80.

This is usually due to the reason that some other services are running on the same port.

you may try below solutions.


Stopping IIS

Mostly the cause for such thing is that IIS is running. You may stop IIS by opening IIS itself or by issuing  the following command in the command prompt.

iisreset /stop

you may also find other commands from the web. see links below.

SQL Server Reporting Services

This also is the cause of such problems often, so in windows 7, you  can stop this by typing services.msc in the start menu and pressing enter. Then look for the service SQL Server Reporting Services, double click it, and click stop.

Or shortly use one of the following command in the command Prompt.
(to open command prompt: type cmd in Run in Windows XP or in Start Menu in Windows 7)

net stop ReportServer$SQLEXPRESS

OR

sc stop ReportServer$SQLEXPRESS





Other solutions

Sometimes the above two solutions are not beneficial, so you can use the a command to see what is being run on the port 80. Type the following command in command prompt.

netstat -oa

This command will list down all the connections and listening ports, and also display the owning Process IDs associated with each connection.

now you can go to task manager by right clicking the Task Bar (The bar on which the start button is there) and select Start Task Manager. Go to Processes Tab. Go to View menu click Select Columns and make the option PID (Process Identifier) checked and click ok. This will now list the processes with PIDs compare the PID from the above command's output, and you can identify the program using port 80 or can END the process from this places which is running the port 80.

other useful links and sources for more info:


  1. http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/
  2. http://www.sitepoint.com/run-apache-iis-same-pc-2/


No comments:

Post a Comment