PHP和ASP.Net可以在IIS 7.5在同一网站中运行起来呢? [英] Can PHP and ASP.Net run together within the same web site in IIS 7.5?

查看:324
本文介绍了PHP和ASP.Net可以在IIS 7.5在同一网站中运行起来呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的网站的一部分在PHP做和我们的网站的一部分在ASP.Net完成。我们只建立一个新的Web服务器与Windows Server 2008 R2具有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.

据我了解,IIS 7+支持PHP,但PHP和ASP.Net可以在IIS中的单个网站中运行并排侧,否则我将不得不设置一个网站的PHP页面和一个网络网站的网页ASP.Net?

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?

推荐答案

您应该能够同时在同一个网站上运行,但可以肯定的是,程序池的站点运行经典ASP.NET池配置。默认的应用程序池路由一切通过ASP.NET,你不会想,对于你的PHP页面。

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.

这篇关于PHP和ASP.Net可以在IIS 7.5在同一网站中运行起来呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆