简体   繁体   中英

Mixing PHP and ASP.NET under same domain

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.

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.

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.

It can be possible. you can run php script in IIS

Here is the link

http://learn.iis.net/page.aspx/24/running-php-applications-on-iis/

All the best. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM