Iis – How to run Apache & IIS 7 on the same IP address (different ports)

apache-2.2iisiis-7portwindows-server-2008

I have a Windows Server 2008 machine which is running Apache at the moment for a public facing PHP site (port 80). IIS is stopped.

I now need to start running IIS on the same IP address as Apache, but I can happily use another port as it's internal only e.g. 8080. We have no other IP addresses available.

I presume it can be done, but I'm new to Apache and need to ensure that I don't break the current PHP site when starting IIS. I understand that IIS tends to hog all ports on an IP by default? Or has that changed since IIS 6?

What configuration steps do I need to take to achieve this?

Many thanks,
Tim

Best Answer

The steps for IIS7 involves:

Microsoft Internet Information Services 7.0:

1. Open Internet Information Services (IIS) Manager.
2. Select the Web site that you wish to configure.
3. In the Action pane, click Bindings.
4. Click Add to add a new site binding, or click Edit to change an existing binding.
5. Click OK to apply the changes.

From How to change the TCP port for IIS Services