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还必须编译模块?如何编译?
...全文
26 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,203

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 CGI
社区管理员
  • CGI社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧