How to open port 80 for Apache previously occupied by Visual Studio servers?

I installed Visual Studio 2010 after WAMP and had to enable IIS . Now I want to use WAMP, but my Apache does not turn on even after I disabled IIS and even uninstalled my Visual Studio 2010.

+4
source share
5 answers

You can set the port number in the Apache server httpd.conf configuration httpd.conf .

Usually inside the "conf" folder of the Apache installation folder. (Let's say c:\wamp\Apache2\conf\httpd.conf )

Then change the line Listen 80 to Listen 8081 . Reboot the Apache server.

Tip. You can install IIS and Apache at the same time, and you can work simultaneously. All you need to do is set up different port numbers for Apache and IIS.

By default, both of them use port 80, but you can change it as described above.

I forgot to mention when you use a port number other than 80, you MUST change the address bar of the browser as http://localhost:8081/ or http://127.0.0.1:8081/

+12
source

I found this at superuser.com, which one of the users posted, so I hope this helps. :) To add a rule to the Windows Firewall for port 80, follow these steps:

Go to the control panel and launch Windows Firewall Go to the Advanced Settings section In the left pane, select Inbound Rules Select the New Rule in the right pane In the Create New Incoming Traffic Wizard, select Port as the rule type, then click Next, select TCP and set to 80 (and any other ports you want to open) to Specific Local Ports, then click Next, select Allow the connection, then click Next, select the network the place where the rule should apply (selected are all of them if you are not sure), then click "Next" Give a name and optional description That should do it.

+4
source

Add or remove programs, add or remove Windows components, uncheck IIS

+1
source
  • in cmd, see which program occupies the port

    NETSTAT -p tcp -ano

  • find PID programs

  • in task manager → process → browse → select a column and enable PID. Find out the process that the port occupies (if it is not found, check also the service tab)

  • complete the process and try to start WAMP. Uninstall this program for a long time or configure it to use a different port.

+1
source

If you installed Visual Studio, you can also install SQL Server . I found out that if SQL Server Reporting was installed and running, it also uses port 80, which causes my problem.

Here is what I did to solve the problem:

  • Press "Windows + R".
  • Type: services.msc .
  • Locate Sql Server Reporting Services .
  • If Status reads Started , right-click on the line and click Stop .
  • Then right-click on the row and select Properties .
  • In the window that appears, change the Startup type to Manual .

You have now stopped SQL Server Reporting Services and did not start the service the next time you restart your computer. Please note: if you need this service to work, you need to start it manually.

Now SQL Server Reporting Services will not cause any problems with WAMP. You must reinstall the Apache service. Here are the steps:

  • Click the WAMP icon (orange) and click Stop All Services .
  • Click on the WAMP icon (red) again and go to Apache > Service > Install Service .
  • Click the WAMP icon (red) again and click Restart All Services .

The WAMP icon should be green and everything will work fine.

+1
source

All Articles