Perl脚本不是在Apache 2.2.15与mod_fcgid / win32下运行 [英] Perl script are not running on Apache 2.2.15 with mod_fcgid / Win32

查看:230
本文介绍了Perl脚本不是在Apache 2.2.15与mod_fcgid / win32下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Apache 2.2.15在Windows XP SP3和ActiveState的Perl的mod_fcgid(试用过5.12和放大器; 5.8.9)
试着perl的示例脚本在mod_fcgid参考页,但它
不工作

I have installed apache 2.2.15 with mod_fcgid on Windows XP SP3 and Activestate Perl (tried both 5.12 & 5.8.9) tried the perl example script in the mod_fcgid reference page but it is not working

我在错误日志中获得此

[周二07年12月23时10分35秒2010] [信息] mod_fcgid:服务器127.0.0.1:/usr/bin/perl.exe(5476)启动
[星期二07年12月23点10分35秒2010] [提醒] [客户端127.0.0.1](OS 109)的管道已结束。 :mod_fcgid:得到重叠结果错误
[星期二07年12月23点10分35秒2010] [错误] [客户端127.0.0.1]脚本头premature结束:f.pl
[星期二07年12月23点10分35秒2010] [错误] [客户端127.0.0.1]文件不存在:C:/Apache2/htdocs/favicon.ico
[星期二07年12月二十三点10分39秒2010] [信息] mod_fcgid - infoneto:过程/usr/bin/perl.exe(5476)出口(通信错误),返回code 9

[Tue Dec 07 23:10:35 2010] [info] mod_fcgid: server 127.0.0.1:/usr/bin/perl.exe(5476) started [Tue Dec 07 23:10:35 2010] [warn] [client 127.0.0.1] (OS 109)The pipe has been ended. : mod_fcgid : get overlap result error [Tue Dec 07 23:10:35 2010] [error] [client 127.0.0.1] Premature end of script headers: f.pl [Tue Dec 07 23:10:35 2010] [error] [client 127.0.0.1] File does not exist: C:/Apache2/htdocs/favicon.ico [Tue Dec 07 23:10:39 2010] [info] mod_fcgid - infoneto: process /usr/bin/perl.exe(5476) exit(communication error), return code 9

我仔细检查一切,包括:
在#!的/ usr / bin中/ perl.exe所在行
该mod_fcgid加载

I double check everything including: The #!/usr/bin/perl.exe line The mod_fcgid is loaded

在运行该脚本作为普通的CGI它的工作原理
当我转身上了年纪的mod_fastcgi它工作得很好作为FastCGI的(即负载运行一次很多次)。

When running the script as plain cgi it works When I turned to the older mod_fastcgi it works just fine as a fastcgi (i.e. loads once runs many times).

使用过程监控,我可以看到Apache的启动Perl的,但它的Perl几乎立即退出,甚至没有加载Perl脚本
我试了一下还对阿帕奇2.0.52和放大器; 2.0.63与旧mod_fcgid并与Apache 2.2.15与最新mod_fcgid(2.3.6),但没有运气

Using process monitor I can see that apache starts Perl but it Perl exits almost instantly without even loading the Perl script I tried it also on Apache 2.0.52 & 2.0.63 with older mod_fcgid and with Apache 2.2.15 with the newest mod_fcgid (2.3.6) but no luck

可以做些什么?

我GOOGLE了四周,但似乎没有人有解决方案或使用mod_fcgid与在Win32

I googled around but no one seems to have solution or managed using mod_fcgid with perl on Win32

我开了两个FCGI错误的CPAN和Apache的跟踪,但似乎没有人关心...

I opened a bug on both FCGI at cpan and on apache tracker but no one seems to care...

有没有解决办法?
难道别人需要这个? (用Perl在Apache / Win32的mod_fcgid)

Is there a solution for this ? Does someone else need this ? (mod_fcgid with Perl on Apache/Win32)

推荐答案

您是在Win32,你的有无的一个 /usr/bin/perl.exe ?你确定吗?

You're on Win32, and you have a /usr/bin/perl.exe? Are you sure?

无论如何,我认为你正在寻找的mod_fastcgi ,而不是 mod_fcgid ;至少,一个快速谷歌搜索似乎是它解决了这一问题,对于大多数。显然 mod_fcgid 在Windows下不工作为好。

Regardless, I think you're looking for mod_fastcgi rather than mod_fcgid; at least, a quick google search seemed that it fixed the problem for most. Apparently mod_fcgid is not working as well under Windows.

这篇关于Perl脚本不是在Apache 2.2.15与mod_fcgid / win32下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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