|
|
|
|
 请教一个CGI问题 - intoqh [ 2004-02-03 17:07 | 1,133 byte(s)]
 Re: 请教一个CGI问题 - intoqh [ 2004-02-04 09:32 | 436 byte(s)]
 Re: 请教一个CGI问题 - ACp [ 2004-02-04 12:34 | 76 byte(s)]
 Re: 请教一个CGI问题 - intoqh [ 2004-02-05 15:11 | 86 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
请各位老师们帮帮忙。
为什么当我访问http://192.168.111.1/cgi-bin/dnchat/login.cgi 却提示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@wlmfw.com.cn and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/2.0.40 Server at 192.168.111.1 Port 80
在APACHE的日志中是这样提示的:
[Tue Feb 3 16:54:24 2004] [error] [client 61.149.159.13] Premature end of script headers: /usr/local/apache/cgi-bin
/dnchat/login.cgi
是我的上传方式不对?我是按照说明以ascii模式上传的,BIN模式我也试了,不行。
大师们快帮帮我,谢了。
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
首先要谢谢楼上这位兄弟顶力相助。
我检查了login.cgi文件
一:此文件属性为755,后来我干脆就改成777了。
二:perl的指向是正确的,如下:
#!/usr/bin/perl
三:您所说的“检查有没有print "Context-type: text/html
"; ”,这点我没明白,我该在哪检查?是login.cgi吗?此文件中没有您所说的此行。
请帮助我呀,急死我了。
|
|
|
[Original]
[Print]
[Top]
|
|
|