如何使用IIS 7.5配置Perl / FCGI(FastCGI)? [英] How to configure Perl/FCGI (FastCGI) with IIS 7.5?

查看:181
本文介绍了如何使用IIS 7.5配置Perl / FCGI(FastCGI)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用IIS 7.5运行Perl / FastCGI(FCGI)。 C:\ Windows \ System32 \inetsrv \ iisfcgi.dll 的版本为 7.5.7601.17514 。这是我的 web.config 和我的Perl脚本:

I'm trying to get Perl/FastCGI (FCGI) running with IIS 7.5. The version of C:\Windows\System32\inetsrv\iisfcgi.dll is 7.5.7601.17514. Here's my web.config and my Perl script:

D:\MiLu\Dev :: more /t1 web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
  <directoryBrowse enabled="true" />
  <handlers>
   <add name="FCGI" path="*.pl" verb="*"
    modules="FastCgiModule"
    scriptProcessor="C:\Opt\Cygwin\bin\perl.exe"
    resourceType="Unspecified" requireAccess="Script" />
  </handlers>
 </system.webServer>
</configuration>

D:\MiLu\Dev :: more /t4 Perl\fcgi\count.pl
use strict;
use warnings;
use FCGI;

my $count = 0;
my $request = FCGI::Request();

while ( $request->Accept >= 0 ) {
    print "Content-type: text/html\r\n\r\n", ++$count;
}

所有我得到的是一个带有来自IIS的通用错误页面的500 FastCGI进程意外退出并列出了可能的错误原因。

All I'm getting is a 500 with a generic error page from IIS stating "The FastCGI process exited unexpectedly" and listing possible error causes.

脚本从命令行运行正常,打印其三行然后立即退出,表明脚本和模块安装没问题。 (顺便说一句,我从 FCGI手册复制了它,所以应该没问题。)

The script runs fine from the command line, printing its three lines and then exiting immediately, indicating that script and module installation are alright. (I copied it from the FCGI manual, by the way, so it should be okay.)

D:\MiLu\Dev :: C:\Opt\Cygwin\bin\perl.exe Perl\fcgi\count.pl
Content-type: text/html

1

FCGI :: IIS模块 但是,它似乎有仅适用于IIS 5.1和6.0。

There is an FCGI::IIS module, however, it appears to have worked only for IIS 5.1 and 6.0.

  • FastCGI and Perl - FastCGI with Perl on IIS 5.1, 6
  • IIS and FastCGI/Scripting languages/Perl

事实上,有一个专用的FCGI模块用于IIS建议IIS 5.1和6.0提供了自己的非标准FCGI实现。那么如果这是真的,那么IIS 7.5呢?相当多的不确定因素。

The fact that there is a dedicated FCGI module for IIS suggests that IIS 5.1 and 6.0 provided their own non-standard FCGI implementation. So if this were true, what about IIS 7.5 then? Quite a lot of uncertainties.

FCGI :: IIS的作者 似乎试图让他的模块与IIS 7.0一起工作(让Perl使用FastCGI-2007在IIS7上工作),但放弃了。

在哪里可以找到更具体的错误信息?有日志文件吗?我应该在Windows事件查看器(eventvwr)中寻找什么?

Where can I find something more concrete as to what the error is? Is there a log file? What should I be looking for in the Windows event viewer (eventvwr)?

我缺少一些神奇的咒语吗?

Is there some magic incantation for IIS that I'm missing?

这个组合的信息不多。但它最终可能会奏效。这里有一个 FastCGI应用程序配置参考页面,并且有人让Catalyst在IIS 7.0上使用FastCGI(MS Windows 2008 / Vista上的Catalyst + IIS 7.0)

There's not much information out there on this combination. But it might work, in the end. There is a FastCGI Application configuration reference page here, and someone has got Catalyst to work with FastCGI on IIS 7.0 (Catalyst+IIS 7.0 on MS Windows 2008/Vista).

推荐答案

我暂时没有这样做,而且从未和Cygwin合作过。
为了测试这个,你可以下载并安装你的架构的最新活动状态perl,并尝试安装/配置如下:

I've not done this for a while, and never with Cygwin. In order to test this could you please download and install the latest active state perl for your architecture and try installing/configuring as below:

http://legacy.websitepanel .net / kb / installed-and-running-active-perl-runtime-as-isapi-on-microsoft-iis-7.0

另一个参考:

http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx

祝你好运。

这篇关于如何使用IIS 7.5配置Perl / FCGI(FastCGI)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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