PHP-on-IIS 的缺点?

发布于 2024-08-05 13:21:50 字数 291 浏览 3 评论 0原文

我工作的开发环境目前是 IIS6/Server 2003 with Framework 3.5。我主要从事 ASP.NET MVC 工作。

我遇到过这样一种情况,对于我正在开发的解决方案,我要么必须花费数周时间重新发明轮子,要么将基于 PHP 的开源项目集成到我正在构建的组件之一中。

我很想将此项目添加到其中,但事实上,它基于 PHP,这引起了人们的极大关注,因为在单个 IIS 安装上运行 PHP 和 .NET 可能会出现潜在的兼容性、安全性和管理问题。

您这样做的经验是什么?好的?坏的?没什么大不了的?严重头痛?

I work in a dev environment that is currently IIS6/Server 2003 with Framework 3.5. I primarily am working in ASP.NET MVC.

I've run into a scenario where, for the solution I'm working on, I'd either have to spend weeks reinventing the wheel or integrating a PHP-based opensource project into one of the components I'm building.

I'd love to add this project to the fold, but the fact that it is based on PHP greatly concerns because of potential compatibility, security, and administration issues with running both PHP and .NET on a single IIS installation.

What are your experiences of doing this? Good? Bad? Not a big deal? Major headache?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

却一份温柔 2024-08-12 13:21:50

非常仔细地检查依赖关系。

许多 OSS php 应用程序对我来说不可用,因为它们需要的库仅是 *nix。

通常,直到您下载并仔细查看后,您才会清楚这些依赖项是什么。

不确定你的 Q 是否暗示运行 .asp 和 .php 扩展名,但是是的,你可以同时运行它们 - 我什至曾经设法获得 .htm 文件,这些文件首先被解析为 .asp,然后解析为 .php (顺便说一句,这是旧的-风格 .asp 不是 .net - 但在 IIS 上都一样)。

Check the dependencies very carefully.

Many OSS php apps were not available to me because they required libs which were *nix only.

Very often its not until you download it and have a good look that it becomes obvious what those dependencies are.

Not sure if your Q hints at running .asp and .php extensions, but yes you can run them alongside - I even once managed to get .htm files that got parsed by as .asp first THEN as .php after ( btw this was old-style .asp not .net - but on IIS all the same ) .

心如荒岛 2024-08-12 13:21:50

我过去遇到的主要问题对您来说可能不是问题:

  • 一些 PHP 库假设您可以使用 mod_rewrite。我使用 ISAPI Rewrite 代替,但它不是 100% 兼容。
  • 一些库(或开发人员)假设它们将在基于 Unix 的环境中运行,并且文件系统将区分大小写。

除此之外,我在从 IIS 运行 PHP 时没有遇到任何阻止我在生产环境中使用它的问题。

The major issues I hit in the past may not be a problem for you:

  • Some PHP libraries assume you can use mod_rewrite. I used ISAPI Rewrite instead, but it was not 100% compatible.
  • Some libraries (or developers) assume they will run in a Unix based environment, and the file system will be case sensitive.

Apart from these, I haven't had any issue when running PHP from IIS that would prevent me from using it in a production environment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文