|
所有问题都是由本人在自己的机器上装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 ... 实在没办法了!!! |
|