Wednesday, 11 December 2019

windows - PID:4 using Port 80


I was trying to install Zend Server CE on my computer but when I got to the point were I need to choose the port for my Web Server it says: "Web Server Port: 80 Occupied". So I decided to check what is using Port 80 with CMD by typing: "netstat -o -n -a | findstr 0.0:80":


TCP     0.0.0.0:80     0.0.0.0:0     LISTENING     4

I check for PID:4 in Task Manager's Processes and Services. Seems PID 4 is "System".


So, what I want to know is how can I stop "System" (PID:4) from using Port 80?


INFO: I am using: Windows 7 64bit; Zend Server CE 5.5.0



Answer



Ok, after searching the web for a while I found a solution to my problem.


Just follow these steps to diagnose and resolve your issue:




  1. Get pid that is listening port 80: netstat -nao | find ":80"




  2. Open task manager, go to processes tab and check “PID” in Menu/View/Select Columns…, then look for the process using the PID found in last step.




  3. If it is a normal application or IIS, disable it or uninstall. Some programs (such as Skype) have the option to disable its use of port 80.




  4. If it is a System Process—PID 4—you need to disable the HTTP.sys driver which is started on demand by another service, such as Windows Remote Management or Print Spooler on Windows 7 or 2008.


    There is two ways to disable it but the first one is safer:


    1.




    • Go to device manager, select “show hidden devices” from menu/view, go to “Non-Plug and Play Driver”/HTTP, double click it to disable it (or set it to manual, some services depended on it).




    • Reboot and use netstat -nao | find ":80" to check if 80 is still used.




    2.




    • Launch RegEdit.




    • Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP




    • Change the value of "start" to 4, which means disabled.




    • Reboot your computer.






My solution was step 4.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...