Apache and IIS 7 running together Apache and IIS 7 running together apache apache

Apache and IIS 7 running together


It is doable. The thing to keep in mind is that no 2 services can share the same port and IP address. Unfortunately, IIS takes over port 80 completely on the magic 0.0.0.0 address. What you need to do is re-bind apache and IIS to different IP addresses as well as remove the 0.0.0.0 binding. Not exactly sure how to get there on IIS7 (presuming you are running it given IE9 in the screenies), last time I pulled this stunt IIS6 was hawt.

A more sane option would be to setup a reverse proxy on 80 and have it hand stuff out to different web servers based on whatever rational criteria you want to use.

EDIT: found the magic juju, IIS7 post #44 - IIS7 and Apache on the same machine.


How To Run IIS And XAMPP Together On Same Machine

It is possible to run both IIS and XAMPP servers together on same machine by just changing the port number of any one of the server's. XAMPP-Apache and IIS both the server's uses the same port 80 to connect. In this post i am going to show you how to change the port number for the XAMPP-Apache server. Changing the port number for Apache server allows you to run both IIS and XAMPP server's on same machine using different port's.

Firstly, You need to know the folder where XAMPP is installed (root folder). The default folder is c:\xampp. From the root folder navigate to " apache\conf " folder and find the file "httpd.conf".

Before editing the file, make a backup of it with a name "httpd.conf.bak" so that if something goes wrong you can replace this file.Now open the file "httpd.conf" with an editor like notepad. You need to make two edits to the file.

The first one:

Find out the below lines in the file.

#Listen 0.0.0.0:80#Listen [::]:80Listen 80

change it as shown below:

#Listen 0.0.0.0:80#Listen [::]:80Listen 8080

The second edit:

Find the below line:

ServerName localhost:80

change it to:

ServerName localhost:8080

You have finished changing the port number. Now restart your apache server from the xampp control panel and its ready to run.

Open your browser and and enter the address localhost:8080. You can see the root folder of apache opened. There is no need to make any changes to the IIS server and you an access it by just entering the address localhost in your browser.

In the above screenshot you can see the IIS server being accessed through localhost and XAMPP server through localhost:8080 on the same machine and even the same browser at a time.


In case of trying to get XAMPP (Apache) and IIS (5.1) working on WinXP this is what I did:

C:\xampp\apache\conf\httpd.conf:Search for “Listen 80″, change to “Listen 8080″Search for “ServerName localhost:80″, change to “ServerName localhost:8080″

C:\xampp\apache\conf\extra\httpd-ssl.confSearch for “Listen 443″, change to “Listen 4499″Search for “”, change to “”Search for “ServerName localhost:443″, change to “ServerName localhost:4499″

[Then, access your Apache side by running localhost:8080 and ISS side by simple loccalhost]