Organizational Research By

Surprising Reserch Topic

can php and asp net run together within the same web site in iis 7 5

can php and asp net run together within the same web site in iis 7 5  using -'php,,iis,iis-7,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?

asked Oct 6, 2015 by ankitarajoria4
0 votes

Related Hot Questions

5 Answers

0 votes

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.

answered Oct 6, 2015 by ashishshukla
0 votes

Yes, PHP can be seamlessly implemented into ASP.NET 3.5 / 4.0

Go to (or and download the latest version of Phalanger. Install into Visual Studio and voila!

Phalanger – the PHP compiler for .NET

Welcome to Phalanger – full-featured PHP runtime & compiler for .NET/Mono frameworks. Phalanger is modern open-source implementation of PHP, compatible with the vast array of existing PHP code. In addition Phalanger gives PHP-application developers lot of new possibilities; from improving performance and using modern environments, to taking advantage of seamless unique .NET integration.

answered Oct 6, 2015 by mtabakade
0 votes

Yes you can use both under the same website. Since the file extensions are mapped to specific external processes, they are called independently. You can even use Asp.Net to secure .php files with FormsAuthentication by implementing wildcard mappings within IIS (I know 6/7 have this, not sure about 5). Mixing data across them is tricky because they will have separate external processes and thus separate sessions. Most cookies will be readable across both, but secured cookies will not be.

answered Oct 6, 2015 by okesh.badhiye
0 votes

ASP and PHP can be used on windows boxes. As long as they're completely separate and aren't dependent on each other. For example, using query strings (i.e file.php?var=1&var2=bla) things get messy when you need to transfer those variables over to the ASP file or vice versa.

So as long as the 2 systems are totally independent of each other, then it should work fine.

You may also find some incompatibility with cookies and sessions. Those too can be passed but not easily.

answered Oct 6, 2015 by tushar2k6
0 votes

ASP.NET and PHP Support

Develop, deploy and easily manage Web applications using your choice of languages. From ASP.NET to PHP, IIS7 provides a powerful and flexible Web server environment for the world’s most popular Web applications.

(Source: )

I tried put a test.php file (with conent: ) to existing ASP.NET website (use real server at ). I knew that ASP.NET and PHP have worked together.

Read more:

answered Oct 6, 2015 by r3tt