How to run Apache & IIS parallel

Hi everyone…

Couple of months back, I was working on a ASP.NET 1.1 application which requires IIS. The application basically fetches  records from webservice and validating those records with our database.

Meanwhile I was working on an php application and it requires Apache. I was using WAMP5 ver 1.6.6 with apache 2.0.59.

Initially I have to stop IIS in order to use Apache and vice versa. As both of servers uses port 80 for all http request.

At that point, I was aware of that there must be some parameters in php configurations files which would allow me to change the http port from 80 to something else, so I just started browsing configuration files and was able to change the port from 80 to say 8080 and now both of my webservers were happy:

Now I can access my sites like;

for IIS,

http://localhost/index.aspx

for Apache

http://localhost:8080/index.php

so for php my localhost is now localhost:8080 and rest is the same. 🙂

What I did:

1. Opened the httpd.conf file
2. Searched for term 80
3. Found on first hit under parameter listen
4. Changed 80 to 8080 there
5. Restarted all wamp services. And thats it.

So rather then searching for 80, you must search for listen parameter and change it

No other changes and settings required. 🙂

Keep Smiling

Advertisements

6 Responses to “How to run Apache & IIS parallel”

  1. marc Says:

    Hey. You can run PHP on IIS 😉

  2. Muhammad Rashid Idris Says:

    Yep, It is very possible.
    How, follow the link.

    http://www.faq.1and1.com/dedicated_servers/windows_server/misc/6.html


    Rashid

  3. hendrawan Says:

    thank you very much it help me so much

  4. Umair Khan Jadoon Says:

    Thanks dude 🙂 It worked

  5. yawmin Says:

    Hey I tried to set IIS to use port 8080 and Apache to use port 80
    It works, but after that the website in IIS (.aspx) was unable to access SQL.
    So now I have Apache on port 8080 and IIS on port 80.
    and now both website are working.
    (note the Website on Apache use php+MySql)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: