LinuxSir.cn,穿越时空的Linuxsir!

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

bbs中cgi问题!!!请求帮助!

[复制链接]
发表于 2003-3-14 23:13:32 | 显示全部楼层 |阅读模式
所有问题都是由本人在自己的机器上装LB遇到的,下面是本人实在无能为力
的两个问题!求助于各位高手或是会的人,先谢谢了.

本人的机器是redhat 8.0+apache,perl自带,我还装了一个ActivePerl 5.6.网页文档目录是/var/www,开启http服务,可以打开http://ip/index.htm.

1.照网页上的编了下面这个1.cgi,
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "ok";
运行perl ./1.cgi,正常.但放入/var/www/cgi-bin后,输入http://ip/cgi-bin/1.cgi,出现下面问题
Internal Server Error

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

Please contact the server administrator, root@localhost 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 _default_ Port 80

2.在cgi-bin目录下运行perl ./install.cgi,出现下面问题:
[allen@localhost cgi-bin]$ perl ./install.cgi
Can't locate LBCGI.pm in @INC (@INC contains: . /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./install.cgi line 36.
BEGIN failed--compilation aborted at ./install.cgi line 36.
我用过dos2unix将cgi-bin下的所有*.cgi,*.pl改过.有关目录文件权限全按安装说明里的设置,这方面应没 问题.

补充 :我在www.cgier.com和www.leoboard.com ... 实在没办法了!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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