Can PHP and ASP.Net run together within the same web site in IIS 7.5?(PHP 和 ASP.Net 可以在 IIS 7.5 中的同一个网站内一起运行吗?)
问题描述
我们网站的一部分是用 PHP 完成的,我们网站的一部分是用 ASP.Net 完成的.我们刚刚使用安装了 IIS 7.5 的 Windows Server 2008 R2 设置了一个新的 Web 服务器.
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 页面和一个 Web 设置一个网站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?
推荐答案
您应该能够在同一个站点中同时运行这两者,但请确保该站点的 AppPool 运行经典"的 ASP.NET 池配置.默认的 AppPool 通过 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 中的同一个网站内一起运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PHP 和 ASP.Net 可以在 IIS 7.5 中的同一个网站内一起运行吗?


- Mod使用GET变量将子域重写为PHP 2021-01-01
- Laravel 仓库 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01