由 yougui 在 11-10-2004 15:44 发表:
[HELP!]RH9+APACHE+CGI出错
我在使用RH9+自带的Apache/2.0.40测试CGI的时候,总是发生如下错误:
---------------------------------------------------------------
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: test.pl
If you think this is a server error, please contact the webmaster
Error 500
192.168.0.198
2004Äê11ÔÂ06ÈÕ ÐÇÆÚÁù 11ʱ42·Ö12Ã&
Apache/2.0.40 (Red Hat Linux)
---------------------------------------------------------------
我的test.pl文件是这样写的:
#!/usr/bin/perl
print "content-type: text/html\n\n";
print "hello";
我试着运行perl,RH显示如下信息: