|
|

楼主 |
发表于 2004-12-23 17:36:34
|
显示全部楼层
怎么变乱码了?
重贴一下:
操作系统:Debian Gnu/Linux Sarge kernel-2.6.8-01
perl:This is perl, v5.8.4 built for i386-linux-thread-multi
mod_perl的安装:apt-get install apache-perl
按照http://perl.apache.org的安装 ... 试程序test.pl:
#!/usr/bin/perl
foreach $key (sort keys %ENV){
print qq|The value of $key is $ENV{"$key"}\n|;
}
shell 里面运行没有问题,可是用http://localehost/perl/test.pl ... l肯定加载了:
devhost:/var/www/perl# telnet 192.168.0.202 80
Trying 192.168.0.202...
Connected to 192.168.0.202.
Escape character is '^]'.
HEAD / HTTP/1.0
HTTP/1.1 200 OK
Date: Thu, 23 Dec 2004 08:58:20 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) mod_perl/1.29
Last-Modified: Thu, 23 Dec 2004 08:45:03 GMT
ETag: "401e900-9cd-41ca858f"
Accept-Ranges: bytes
Content-Length: 2509
Connection: close
Content-Type: text/html; charset=iso-8859-1
Connection closed by foreign host.
我的配置文件在附件里面。
谢谢! |
|