- 论坛徽章:
- 0
|
10可用积分
貌似是CGI模块在Apache中不可用,但是各位能否告诉我怎么测试,如何解决问题。
配制文件已经修改好了啊,因为其他的perl是可以用的。昨天的使用FORM的那个可以正常执行。
Server: Apache ,perl 5.8.8, xp, CGI模块已经安装。
但是下面的带有CGI模块的程序就是不可用,
hello.pl
- #!/usr/bin/perl -w
- use CGI qw(:standard);
- use strict;
- print header;
- print "<B>Hello,world!~</B>";
复制代码
1、浏览器报错为“500 internal server error”。
2、apache的错误信息为:
[error] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: hello.pl
[error] (OS 3)The system cannot find the path specified. : couldn't spawn child process: C:/Apache2.2/htdocs/hello.pl
3、使用工具DzSoft Perl Editor编译却没有问题,能正常显示。 |
最佳答案
查看完整内容
1. 先关联.pl文件用Perl执行2. 在apache配置文件里加一行ScriptInterpreterSource registry
|