redhat8 web服务器的问题?
zgia 2002-12-23 03:31:08 我使用linux8,在浏览器中输入:http://127.0.0.1/cgi-bin/1.pl,出现下面信息:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: 1.pl
If you think this is a server error, please contact the webmaster
Error 500
127.0.0.1
2002年12月23日 星期一 03时13分28秒
Apache/2.0.40 (Red Hat Linux)
这是我的1.pl的内容:
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "Hello, World.";
我使用redhat8自带的apache,我直接运行httpd启动apache,输入http://127.0.0.1/index.htm可以访问我的页面。
在redhat8的RELEASE-NOTES-zh_CN.html中有下面一段话:
Perl 已被更新到版本 5.8。和包括在 Red Hat Linux 7.3 中的 5.6.x 版本相比,它包括下列改进和新增功能:
(省略......)
注意,虽然和从前版本 Perl 的源码兼容性在该发行版本中已被保留, 您仍需要重新编译所有的二进制模块。
这是什么意思?是不是我想使用cgi还必须编译模块?如何编译?