apache alongside iis
Posted by: alihonarmand (---.rasana.net)
Date: June 13, 2011 08:32AM

Hi everyone,

I need to know how is it possible to make apache server work alongside IIS.

Thanks in advance,
A.Honarmand

Options: ReplyQuote
Re: apache alongside iis
Posted by: stevenmartin99 (---.251.255.13.threembb.ie)
Date: June 13, 2011 08:49AM

Yes but not on same port

Left click wamp> apache> httpd.conf

Find

Listen 80

And change it to

Listen 81


Save and restart wamp

You now have to access it using ht tp:/localhost:81

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: apache alongside iis
Posted by: yfastud (Moderator)
Date: June 13, 2011 06:30PM

Theory, you can have both, but practically, they might conflict in some ways w/ any wamp package, including this wampserver suite. In additions, you can install add-on such asp.net, jsp, so on to work w/ wampserver instead running 2 webservers, and you can follow my guides here.

[guides.jlbn.net]

Anyway, if you still like to try it, make sure to test on single PC before put on main server, and here is the simplest way as far as I know

1. Configure iis running as service
2. Stop iis
3. Install wampserver (w/ option running as service)
4. Open httpd.conf in wamp/bin/apache/apache2.2.xx/conf
5. Find and change listen 80 to other port such as 81, 8080, 8181,so on
6. Enable associated port 81, 8080, so on for wampserver in all firewalls and routers
7. Restart your computer, and now you have both iis and wampserver running

For testing, you should save in new folder every time you have new project, and for testing these 2, save these 2 test index.html in their associated locations

// index.html testing asp stored in C:\Inetpub\wwwroot\testiis

<html>
<body>
<p>
IIS working
</p>
<%
Response.Write("And ASP works, too"winking smiley;
%>
</body>
</html>

// index.html testing php stored in C:\wamp\www\testwamp

<html>
<body>
<p>
WAMP working
</p>
<?php
echo 'And PHP works, too';
?>
</body>
</html>

And access them like this:

'http://localhost/testiis'
'http://localhost:8181/testwamp'

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides



Edited 1 time(s). Last edit at 06/13/2011 06:40PM by yfastud.

Options: ReplyQuote
Re: apache alongside iis
Posted by: TonyMal (109.76.207.---)
Date: April 28, 2015 02:37PM

I have done the above config changes as per your excellent advice, as I wished to do exact same as questioner - all is working perfectly.

I am following the jlbn guides at mo ( I'm using WAMP 2.5 btw) and was about to set the password for root / localhost under "users" but now as my localhost is actually localhost:81 (the port I opened for WAMP) do I need to change something in WAMP so it will globally recognise localhost as localhost:81?

I can get to sites with the port suffix :81 ok but when clicking the WAMP links - phpMyAdmin or localhost - I get '404' errors as it doesn't have the port reflected throughout it's config.

Thanks In Advance

Options: ReplyQuote


Sorry, only registered users may post in this forum.