我可以在 Xampp 上开发网站并在基于 Windows 的服务器上发布吗? (PHP/IIS 6/7/阿帕奇)

发布于 2024-08-01 14:17:49 字数 361 浏览 2 评论 0原文

我通常在 WAMP/XAMPP 上开发网站并将其托管在 Linux 服务器上。 一切正常。 但为了满足一些客户端要求,我们需要在运行 IIS 的基于 Windows 的服务器上托管一个新项目(我猜它是 IIS7,如果不是 IIS6)。

我无法访问本地的 Windows 服务器。 那么我如何在开发时了解它在 Windows 上托管时可以正常工作。 我主要关心的是 .htaccess 的东西。 例如,URL重写。

我一直在谷歌上搜索,发现我可以使用 ISAPI 过滤器做一些事情。

还有更多我应该关心的事情(除了 .htaccess 之外)吗? 您会向我推荐哪种 ISAPI 过滤器?

感谢您的帮助。

I usually develop websites on the WAMP/XAMPP and host it on Linux servers. All works fine. But to meet some of the client requirements, we need to host a new project on to a Windows based server running IIS (I guess its IIS7, if not IIS6).

I don't have access to a windows server on my local. So how I can develop with having an understanding that it would work fine when hosted on the Windows. My main concern is with .htaccess stuff. For example, URL rewriting.

I have been googling around and could see that I can do something with ISAPI filters.

Are there more things I should care about (other than .htaccess)?
Which ISAPI filter you would recommend to me?

Thanks for your help.

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

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

发布评论

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

评论(2

作妖 2024-08-08 14:17:49

实际上,您可以在 Windows 2008 上运行 Apache。我们这样做...

或者,如果您确实想运行 IIS7 中的 PHP,这很简单:MS 有一个 整个站点专门用于可以直接安装到 IIS 的应用程序(其中很多是 PHP)

Actually, you can run Apache on Windows 2008. We do it...

Alternatively, if you do want to run PHP in IIS7, it is easy: MS has an entire site dedicated to apps that can be installed directly to IIS (and a bunch of them are PHP)

欢烬 2024-08-08 14:17:49

前面提到的站点是 http://php.iis.net/

如果是 Windows 2003 那么指南是:
http:// /learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/

如果是 Windows 2008,则指南是:
http:// /learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/

.HTACCESS 文件在 IIS 中不使用,因此如果您进行广泛的使用这些,那么你就会遇到问题。 对于 URL 重写,我使用 Ionic 的 ISAPI 重写过滤器:
http://cheeso.members.winisp.net/IIRF.aspx

The site mentioned earlier is http://php.iis.net/

If its Windows 2003 Then the guide is:
http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/

If its windows 2008 then the guide is:
http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/

.HTACCESS files are not used in IIS, so if you make an extensive use of those then you will have issues. For URL re-writing I use Ionic's ISAPI Rewrite Filter:
http://cheeso.members.winisp.net/IIRF.aspx

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