Wednesday, June 13, 2018

apache port 80



1) unblock port 80:     cmd, run

netstat -ano -p tcp | findstr LISTENING
TCP    0.0.0.0:80             0.0.0.0                  LISTENING       4
TCP    0.0.0.0:445            0.0.0.0                  LISTENING       4  etc.

 if you see TCP ... 80, means some program are using port 80, you must unblock 80,
 otherwise, apache with port 80 will fail.





2)
Several programs can block that port. Candidates are:
  • Skype
  • Web Deployment Agent Service (can be stopped via Start -> [-> Run] -> services.msc)
  • World Wide Web Publishing Service
  • IIS (if you have it installed) remove all site binding with port 80
  • TeamViewer
  • VMware (in VMware Workstation go to Edit>>Preferences>>Shared VMs, and Disable Sharing or change the port)
    Web Deployment Agent Service and World Wide Web Publishing Service can be set to manual start to keep them from running. Stop or change these services from an account that has administrator permissions. Skype and TeamViewer can be configured not to use port 80. For Skype Go to Options > Advanced > Connection and un-check "Use port 80 and 443 for incoming connections" For TeamViewer Go to Extra > Options > Advanced and un-check the similar message as above.



3) disable this sql server reporting services, by click the property of service, choose start type as disable

if you installed Visual Studio, you may also have installed SQL Server. I found out that if SQL Server Reporting Services was installed and started, it uses port 80 too which was causing my problem.
Here is what I did to solve the issue:
  1. Press "Windows + R".
  2. Type: services.msc.
  3. Look for Sql Server Reporting Services in the list.
  4. If the Status reads Started, right-click on the line and click on Stop.
  5. Then, right-click on the line again and choose Properties.
  6. In the window that pops, change Startup type to Manual.
You now have stopped SQL Server Reporting Services and prevent the service from starting again on your next computer restart. Note that if you need that service to work, you will need to start it manually.


4) change port to 80 at Apache2\conf\httpd.conf


#Listen 12.34.56.78:80
Listen 80

ServerName localhost:80


















No comments: