在本机上测试很正常的cgi程序,放到网络空间就不正常了!

希偌 2002-01-08 08:00:22
在本机上测试很正常的cgi程序,放到网络空间就不正常了!
是否一定要在首行加上#!c:/perl/bin/perl.exe才行呢?
错误为:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@free.prohosting.com 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.
...全文
128 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
Dykeng 2002-01-10
  • 打赏
  • 举报
回复
用FTP上去可改权限,一般CGI程序设为755。

如果还是 500号 错误,可同你的网络服务提供商联系。
d_k 2002-01-09
  • 打赏
  • 举报
回复
所谓的777,775
是指文件权限的另一种表示方法
r w x
4 2 1
7=4+2+1 (rwx)
希偌 2002-01-09
  • 打赏
  • 举报
回复
对了,权限应该怎么样设置呢??
我怎么都找不到设置755,777……的地方,在哪儿呢?
希偌 2002-01-09
  • 打赏
  • 举报
回复
哪位能把一个设置好的cgi程序(在网络空间能够直接运行的)发给我,重分酬谢~~~~~
33360247@sina.com
先谢谢了!!!
yourway 2002-01-08
  • 打赏
  • 举报
回复
权限当然是要设置的呀,一般应该把cgi程序的权限设为755即可。
yourway 2002-01-08
  • 打赏
  • 举报
回复
呵呵,那一行是一定要写的,但你写的有问题,那是windows版apache中的写法。
我去看了一下,他们用的是UNIX服务器,所以,你的第一行应该写:
#!/usr/bin/perl #系统默认安装的perl的路径.
或者
#!/usr/local/bin/perl #单独安装的perl解释器路径,如果上一个不行,就用这个
okeyes 2002-01-08
  • 打赏
  • 举报
回复
要放在适当的目录中才行,要问管理员才知道了,即那个所谓的cgi-bin目录.
希偌 2002-01-08
  • 打赏
  • 举报
回复
怎么设置呢?
希偌 2002-01-08
  • 打赏
  • 举报
回复
是否要设置cgi文件的权限呢》
希偌 2002-01-08
  • 打赏
  • 举报
回复
我加上了#!c:/perl/bin/perl.exe以后也还是不行呀!
怎么办,高手救命呀!

2,204

社区成员

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

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