• IIS7 post #44 – IIS7 and Apache on the same machine.

    There was a question on http://forums.iis.net about having Apache and IIS7 on the same box.  here are the instructions I tested on Vista RTM and Windows Server 2008 B3.  This assumes you have two ip addresses on the box, and  It can be any ip’s.

    1) Added or make sure your machine has two ip’s
    2) Open a command prompt
    3) Type netsh
    4) Type http
    5) Type sho iplisten.  It should be blank
    6) Type add iplisten ipaddress=
    You should get IP address successfully added
    7) Type sho iplisten again
    It should sho in the list
    8) Type exit to get out of netsh
    9) Type type netstat -an.  See if you notice in the list.  If you see, do an iisreset

    10) Download and install Apache ( I did it with 2.2.4)
    11) Do a default install,
    12) Open httpd.conf and adjust the ip listen to

    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses (
    #Was 80
    #Change to


    12) Restart the Apache service.  (for some reason the start / stop thing didn’t work for me, I used net stop apache2 net start apache2.)
    13) Type netstat -an
    14) You should see and  Open a browser and test both IP’s to see if IIS7 and Apache come up.
    15) Test restarting Apache service to see if it works after that.
    16) Turn off Apache, browse IIS, turn of IIS, browse Apache. Test it every which way to see if it works.

    Hope this helps

9 Responsesso far.

  1. Iis7 post 44 iis7 and apache on the same machine.. Nice :)

  2. Mohd Zaini says:

    What if I am to install IIS7 & WAMP on a Vista Business with only 1 IP address only?

  3. Bukenya says:

    Just learned adding ip address to my laptop but whenever i restart apache it calls for an error

  4. daniel says:

    It is not showing up on netstat -an, please help

  5. Victor Guembes says:

    thank you so much for this, it works perfect!

  6. George says:

    Not working on my server. netstat showing IP1:80 and IP2:80 (Apache) but site visible only on local browser. From the Internet I can’t see it. If I add IP2:8080 – can open page from internet too. Can somebody help?

  7. Lien Lam says:

    Thanku so much, perfect help to me.

  8. Fuzzy Analysis says:

    Nice solution. For us people who don’t have 2 IPs and prefer to use different port numbers instead, I thought I’d post my solution for doing so here:


  9. Fritz Rasch says:

    Awesome :)