Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can PHP and ASP.Net run together within the same web site in IIS 7.5?

A portion of our site is done in PHP and a portion of our site is done in ASP.Net. We just set up a new web server with Windows Server 2008 R2 which has IIS 7.5 installed.

I understand that IIS 7+ supports PHP, but can PHP and ASP.Net run side-by-side within a single web site in IIS, or would I have to set up one web site for the PHP pages and one web site for the ASP.Net pages?

like image 525
Aaron Avatar asked Jan 21 '11 17:01

Aaron


People also ask

Can PHP be run on Microsoft Windows IIS Internet Information Server?

The fastest and easiest way to install PHP on Internet Information Services (IIS) is by using the Microsoft® Web Platform Installer (Web PI). Web PI completely automates setting up IIS, FastCGI, and the latest version of PHP from the php.net Web site.

How does ASP.NET work with IIS?

IIS has its own ASP.NET Process Engine to handle the ASP.NET request. So, when a request comes from client to server, IIS takes that request and process it and send the response back to clients. Hope, till now it's clear to you that what is the Web server and IIS is and what is the use of them.

Does .NET run on IIS?

IIS 8.0 supports running both ASP.NET 3.5 and ASP.NET 4.5 applications on the same machine using different application pools to host each . NET Framework version. IIS 8.0 supports for multiple .


1 Answers

You should be able to run both in the same site, but be sure that the AppPool for the site runs a "classic" ASP.NET pool configuration. The default AppPool routes everything through ASP.NET, and you won't want that for your PHP pages.

Other than that, you should be fine. Query strings, files, and back-end databases will be the best way to share data between pages.

like image 67
Cylon Cat Avatar answered Sep 18 '22 06:09

Cylon Cat