Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 757
Abidakun Mayowa Avatar asked Jul 29 '11 11:07

Abidakun Mayowa


1 Answers

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

Usually inside the "conf" folder of Apache installation folder. (Say, c:\wamp\Apache2\conf\httpd.conf)

Then change the line Listen 80 to Listen 8081. Restart your Apache server.

Tip: You can install IIS and Apache together, and you can work on both at the same time. All what you need is, set different port numbers for Apache and IIS.

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

I forgot to mention, when you're using a port number other than 80, you MUST change the browser addressbar as http://localhost:8081/ or http://127.0.0.1:8081/

like image 68
Vishnu Haridas Avatar answered Oct 20 '22 04:10

Vishnu Haridas