So suddenly you don’t know why,

web site is not running…

on my case its on windows server 2003

first thing first, download tcpView from http://technet.microsoft.com/en-us/sysinternals/bb897437

or

open cmd, netstat -aon

if you see TCP 0.0.0.0:80

or

System PID 4 taking over your port 80

Check answer on http://stackoverflow.com/questions/1430141/port-80-is-being-used-by-system-pid-4-what-is-that

if none of its working,

then i get the clue from http://iconraja.wordpress.com/2011/03/03/how-to-run-iis-and-apache-on-same-machine-on-port-80/

so i download first the

http://www.microsoft.com/downloads/details.aspx?FamilyID=96a35011-fd83-419d-939b-9a772ea2df90&displaylang=en

once i got httpcfg.exe

see how to use it here http://support.microsoft.com/kb/892847

httpcfg query iplisten

–> HttpQueryServiceConfiguration completed with 1168. —> it listen to nothing

httpcfg set iplisten -i xxx.xxx.xxx.xxx

–> set xxx.xxx.xxx.xxx to which iis ip address setting, if you get HttpQueryServiceConfiguration completed with 0. –> means everything good

net stop http /y

iisreset /restart

open inetmgr,

check if your website running…

start it if its stopped…

and done !

Advertisements