Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mixing PHP and ASP.NET under same domain

Tags:

php

asp.net

iis-7

How PHP mixes with ASP.NET ? Let's say I have an asp.net app under root domain. Then I create a folder where I will put PHP.

Can PHP live under ASP.NET without problem ? Is it necessary that I transform PHP dir into an app under IIS7 ?

PHP is installed. My question is about adding a PHP app under an ASP.NET app not under IIS in general.

like image 345
user310291 Avatar asked May 25 '26 07:05

user310291


2 Answers

ASP.NET and PHP will happily co-reside in the same website. From your comments you are asking if it is ok to put your PHP application in a folder of its own and turn this into an application. Yes that is perfectly fine to do.

Just make sure that you've configured PHP properly which means running a non-threadsafe build of PHP using FastCGI:

Using FastCGI to Host PHP Applications on IIS 7

That is the recommended way to run PHP on IIS6 and IIS7 now.

like image 75
Kev Avatar answered May 26 '26 22:05

Kev


PHP will run quite merrily on IIS.

http://www.php.net/manual/en/install.windows.iis.php

From my experience, I'd advise creating a different AppPools for PHP / .NET.

like image 22
trickwallett Avatar answered May 26 '26 21:05

trickwallett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!