在IIS 7上运行的内部ASP.NET MVC 4应用PHP文件? [英] Run PHP file inside ASP.NET MVC 4 application on IIS 7?

查看:168
本文介绍了在IIS 7上运行的内部ASP.NET MVC 4应用PHP文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个只有PHP API一次支付网关。是否有可能上运行的应用程序我的IIS服务器中该脚本将运行MVC4?

I have one payment gateway that has only php api. Is it possible to run that script inside my IIS server on application that will run MVC4?

当我加入 1.PHP 我的根文件夹,并尝试进行导航它显示 HTTP错误404.3 - 未找到

When I add 1.php to my root folder and try to navigate it it shows HTTP Error 404.3 - Not Found.

推荐答案

您必须与IIS服务器上的FastCGI安装PHP。这应该将其配置为支持PHP扩展。它可以与 http://www.microsoft.com/web/downloads/platform安装。 ASPX

You have to install PHP with FastCGI on the IIS server. That should configure it to support .php extension. It can be installed with http://www.microsoft.com/web/downloads/platform.aspx

接下来,您必须配置路由忽略请求该页面(否则它会假设这个名字实际上是一个控制器的名称)。

Next you have to configure the routing to ignore requests to this page (otherwise it will assume that the name is actually a name of a controller).

这篇关于在IIS 7上运行的内部ASP.NET MVC 4应用PHP文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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