IIS and Apache (WAMP) running IIS and Apache (WAMP) running apache apache

IIS and Apache (WAMP) running


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


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 443NameVirtualHost 127.0.0.1:443<VirtualHost 127.0.0.1:443>

Then you should be good to run both services.


Or like in my case, I wanted wamp to run on port :80 on a secondary ip on the same network card.This allows me to use my main ip to run IIS on :80 and the secondary ip :80 apache.How to get multiple IP's on same networkcard? stackoverflow alias IP

  1. Browse to 'C:\wamp64\bin\apache\apache2.4.23\conf'
  2. open httpd.conf
  3. Look for Line ~72 Listen 0.0.0.0:80 and change this to the secondary ip (in my case 192.168.210.41:80).
  4. I had to restart pc because IIS did not want to restart. Start IIS first, then Wamp.Works!