Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS and Apache (WAMP) running

Tags:

How can we run IIS 6 and Apache (wamp) in same machine at same time?

like image 207
chrithccmc Avatar asked Mar 28 '11 07:03

chrithccmc


People also ask

Can IIS and WAMP run together?

You can use both IIS and WAMP server on your system. Since the default port for IIS & wamp server is 80, you need to change one of the port.

How do I disable port 80 in IIS?

In IIS, click your web site, then click Bindings and Remove the Port 80 entry, you must have the other entry for 443 before you can remove the one for Port 80.

How do I stop WAMP server from running?

To shut down WampServer, click on the systray icon and select Stop All Services to shut down the Apache and MySQL services. The icon will turn red once all services have been shut down. Next you will right-click on the WampServer systray icon and click Exit to close the program.

Why my WAMP server is not working?

It says that whatever port is used by Apache (Wamp server) is currently used by some other service, so if you want to start the Apache service then you have to changethe port of this Wampserver service. Now for changing the port you have to go to Wampserver menu => Apache. Open httpd. conf file.


2 Answers

IIS and Apache should have different port.

To change the port of Apache(WAMP)

  1. Click on WAMP icon that you can see on your tray or other shortcut icons for wamp.
  2. Look for the Apache and open the httpd.conf or if you know where it is stored.
  3. Find the "80" then change

    Listen 80 to Listen 8080

    ServerName localhost:80 to ServerName localhost:8080

    Note: You can change the port which you desired as long as it will not conflict with your other port. It is more safe and common if the port is at this range.

  4. Then click on Restart All Services.

See here for more info.

If you prefer to change your IIS rather Apache, check on this IIS

like image 196
ace Avatar answered Oct 13 '22 14:10

ace


Another thing to watch out for is the port used for VirtualHosts (443). In your Apache folder, in conf/extra there should be a file called http-vhosts.conf

You should change all instances of 443 to a different port.

Change:

Listen 443 NameVirtualHost 127.0.0.1:443 <VirtualHost 127.0.0.1:443> 

Then you should be good to run both services.

like image 29
Skip Tastic Avatar answered Oct 13 '22 14:10

Skip Tastic