How To Run IIS and Apache on Multi IP Server
There comes a time in the life of a network administrator or an Internet entrepreneur, the need to run Apache Web Server on a Single Host with a Multiple IPs. There are many reasons why one may wish to do such a thing. My reason for wanting to run Apache on IIS?with a?multi IP server is as follows:
- Wish to run ASP on IIS along with Dot NET which works without issues on IIS
- Also need to run PHP (Which does work on IIS but)
- I also need to run Mod_Rewrite for SEO friendly URLs (Which does not work on IIS)
So the dying question that on your mind if your reading this post is how…?
Lets first discus the basic prerequisite requirements prior to getting into the how:
- Windows Server (2003 is what i have) with IIS running and configured as required (by you)
- The Windows Server Media CD
- Download the most current stable version of Apache Web Server from http://httpd.apache.org/download.cgi
- Read the Readme section for compatibility and debugging of error under windows installation of Apache at http://www.uniontransit.com/apache/httpd/binaries/win32/README.html
- Some time and patience
Step by Step Instructions on How to run Apache Web Server on Windows Server with IIS with multiple IPs:
OK. Assuming you already have the above prerequisite requirements completed follow the step by step guide below:
- Turn of IIS service under services section or from command line (c:> net stop http /y)
(If you need instructions for this – you should not be installing Apache on Windows Server with IIS) - Extract the httpcfg.exe from the Windows Server Media CD
- Run httpcfg.exe to have IIS run on the actual IPs desired on your multi-IP server
Example:- (c:>httpcfg set iplisten -i 192.168.0.10 ) - Make sure that IIS is listening on the the above IP or what ever IP you chose to run IIS on by tying the following command
Example:- (c:>httpcfg query iplisten 192.168.0.10 (Your IP if different)
IIS should not be listening on any other IP other than the one/s you specified - Then install the latest stable version of Apache that you previously downloaded to the Windows Server running IIS
- Configure Apache to run on an unassigned IP that IIS is not listening to.
- Restart IIS (c:> netstart w3svc)
Conclusion:
At this stage, if all went well on your specific installation of Windows Server with IIS and Apache installed, you should be able to browse either IPs for the different Web Servers Installed. If it does not work for you. You may have miss-configured something, everything or anywhere in between.
Professional Troubleshooting: – Kids don’t Try this at Home
If you still can’t get IIS to co-exist with Apache and vice-versa and are in need of professional help. We can provide Remote Server Support and Configuration, as well as On Site Windows Server Troubleshootingto help you troubleshoot IIS and Apache Web Server and get IIS and Apache singing together.
For for free advice and consultation please?contact us at 877-439-4462 or via our website.
Future Article:
In a future articleI ?will discuss how to run IIS and Apache on a Windows Server with only a single IP. Stay tuned for that. In the meantime if you enjoyed reading this article and would like to see more like it, then please drop us a line via the contact form on our main site. Also help us bring you even more great articles like this one by helping us spread the word. Book mark this article using the social bookmarking tools to the right.