LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 739|回复: 1

關於Apache2+CGI問題

[复制链接]
发表于 2003-11-19 16:25:39 | 显示全部楼层 |阅读模式
我想在httpd.conf只裏設定VirtualHost?砼茏约壕W站及CGI,而不想更改原本的設定,但是在跑CGI時老是出錯。
Server error!
The server encountered an internal error and was unable to complete

your request.
Error message:
Premature end of script headers: perl.cgi
If you think this is a server error, please contact the webmaster
Error 500
Apache/2.0.40 (Red Hat Linux)

我試過把cgi-bin裏的cgi檔更換755,777,644等屬性以及上傳過別的CGI程式都是出錯,請問是甚麼原因
跑CGI是否要修改 perl.conf 或是其他方面?
而我用rpm -qi perl
是已安裝perl 5.8 版本

這是我的httpd.conf檔,我真的搞不清是哪有問題,麻煩大大們看看。

http://scorpius.spaceports.com/~kwzone/httpd.conf
发表于 2003-11-19 18:17:28 | 显示全部楼层
很可能是cgi程序的问题,最好先在命令行下执行一遍看有没有错误
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表