«Home

Can Apache And Iis Run Of The Same Machine?

i wan to find out if

apache and IIS can run on the same machine?

Avatar
Newbie
8 answers

I just found out on the net that you can actually deploy an aspx page on

Apache Server, by runing one module. i think this is better than actually using the two server just becos you want to use aspx and PHP to access the same back end resources.

0
Avatar
Newbie

It's really not a good idea to have two web servers running in a production environment but I don't see anything wrong when you are testing and developing.

You can install as many as you want if you have the resources, this is what I do

IIS = port 80

Apache = 81

Tomcat = 8080

So, I can test my asp, aspx apps, php and jsp apps.

0
Avatar
Newbie

It is not wise to have two web servers running on a single host. However, you can configure either Apache PHP or IIS to run as a single server. All you need to do is teach each server how to process request from either file.

If a request comes from a php file i.e. (index.php) it is routed to Apache connector and if a request is from a file i.e. (index.asp/index.aspx) it is routed to IIS server.

Here is a help tutorialand this. You can do google search to find more useful links.

Good luck

0
Avatar
Newbie

it's no big deal, just change the port apache listens on.

Open httpd.conf

look for the string Listen, and change it from 80 to 81 or 8080 or any port you want apache to listen on. So, if you want to access apache, open a web browser and type

http://localhost:8080

That's all there is to it.

0
Avatar
Newbie

default for IIS is port 80, if u installed ur apache on port 80, i have a feelin IIS will not start,

and when u call localhost, its ur port 80 dat runs ,

0
Avatar
Newbie

Thanks Otuyelu :

The ports guess, they are set doing installations cos i have an app that is written in pearl and has mysql database that i want to query with asp.net and C# .

If i have apache already Installed, the setting of the port of IIS should it be done when i m installing it on the machine

when i call "localhost" which of the servers will respond to that call?.

0
Avatar
Newbie

Yes you may run both on the same machine, but you will have to run the processes off different ports. On one of my development servers I run Apache on ports 8000 - 9000 and all IIS virtual sites on port 80

0
Avatar
Newbie
Your answer
Add image

By posting your answer, you agree to the privacy policy and terms of service.