当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 打开 http://localhost/cgi-bin/hello.pl提示错误 大家指教一下
帖子发表于 : 2012-04-25 11:22 

注册: 2012-04-16 16:55
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
我在 usr/lib/cgi-bin 下建立了个hello.pl文件 内容
#!/bin.sh
echo "content-type:text/html"
echo
echo "hello world!!!"

打开打开 http://localhost/cgi-bin/hello.pl提示错误
internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

log 提示 [Wed Apr 25 11:09:29 2012] [error] [client 127.0.0.1] (2)No such file or directory: exec of '/usr/lib/cgi-bin/hello.pl' failed
[Wed Apr 25 11:09:29 2012] [error] [client 127.0.0.1] Premature end of script headers: hello.pl

大家帮一下初学者!


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 打开 http://localhost/cgi-bin/hello.pl提示错误 大家指教一下
帖子发表于 : 2012-05-01 10:42 

注册: 2012-05-01 10:34
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
文件头有问题吧,
#!bin/sh换成#!/bin/perl 试试


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译