Setting up IIS 7.5 and Apache on same server
Recently I was asked to set up IIS 7.5 and Apache on same server to run different applications – one on .NET and another of PHP. Initially, I considered running PHP on IIS but discarded this option since the client did not want to take the risk of trying out something new. They had run the app on Apache and wanted it that way.
Turns out running IIS and Apache together is a relatively easy task. The server will require atleast two IP addresses. One IP will be used by IIS and another by Apache.
By default, when IIS is installed it will listen on all IP addresses assigned to the server. To make this work, IIS needs to be configured to listen to only one address.
1. Open command prompt
2. Type “netsh”
3. Type “http”
4. Type “sho iplisten”
5. Type “add iplisten ipaddress=192.168.1.1 (replace by correct IP address)
6. Type “sho iplisten” – this will show the added IP address
7. Exit and restart IIS services
In the next step, we have to configure Apache to listen to the correct IP address
1. Open httpd.conf in Apache folder
2. Search for “Listen” and change to “Listen 192.168.1.1:80” (replace by correct IP address)
3. Save and restart Apache services
Open browser and navigate to both IP addresses and ensure the correct server is responding.
- ARM’s 64-bit mode (AArch64) ARMv8)
- My experience running PHP on IIS 7.5
- Rotating or Resizing an Image in OpenCV
- Hardware Platforms for Embedded Computer Vision, Image Processing and Deep Learning
- Dynamic DNS update from .C# and .net
- Best Concise Linux System Administrator’s Guide (SAG)
- How to detect the color of a person’s shirt
- Using HTTPWebRequest & HTTPWebResponse to automate web browsing
- Introduction to OpenCV