Tutorial :Can IIS supporting ASP.NET and WAMP supporting PHP coexist on the same server?



Question:

Can IIS supporting ASP.NET and WAMP supporting PHP coexist on the same server?

We already have a WAMP stack setup on a Windows Server 2003 box to support some internal PHP applications, and I want to also setup CI Factory on that box which will try to configure IIS to support it's ASP.NET based dashboard. I want to make sure that there isn't a big chance of fubarring the WAMP stack that is already there. Will it be smart enough to handle *.PHP through Apache and *.aspx through IIS ?

Edit: Is there a way to get this to work on the same port?


Solution:1

For example IIS on non-standard port (e.g. 8080) and Apache redirecting traffic to IIS via mod_proxy.

Separate vhosts:

<VirtualHost lamp.example.com>    # standard vhost configuration  </VirtualHost>    <VirtualHost aspx.example.com>    ProxyPass / aspx.example.com:8080  </VirtualHost>  

One vhost:

<VirtualHost www.example.com>    ProxyPassMatch ^/(.*\.aspx) www.example.com:8080/$1      # ... standard vhost configuration for LAMP  </VirtualHost>  


Solution:2

Yes. Both will run under IIS in a Windows server.


Solution:3

It's certainly possible. I have IIS+ASP+MSSQL and XAMPP (apache+PHP+MySQL) installed on my development machine and both of them don't interrupt work of another another. Atleast while different ports are used


Solution:4

As mentioned before, yes. If it helps to provide "real world examples", the GoDaddy account that I'm currently hosting my sites on gives me both stacks. I have a couple SMF forums that are PHP/MySQL based and I have a web application that is .NET 3.5/SQL Server 2005 based and they run just fine.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »