- 论坛徽章:
- 0
|
我的系统是Redhat AS 3 ,自己编译了apache,
参数为:
./configure --prefix=/usr/local/apache2 --enable-so --enable-dav \
--enable-dav-fs --enable-ssl --enable-ldap --enable-auth-ldap \
--with-ldap --with-berkeley-db=/usr/local/BerkeleyDB.4.3 \
--with-perl=/usr/local/bin/perl
以上的路径验证过绝对正确
首先我配置了httpd.conf里面的
ScriptAlias /cgi-bin/ /我的cgi存放位置/
AddHandler cgi-script cgi pl
<Directory /我的cgi存放位置>;
加上了 Options +ExecCGI
</Directory>;
CGI程序放好,因为是测试,全部使用777权限
启动apache后 运行 *.cgi错误 ,查看error_log提示
[client 192.168.88.88] (2)No such file or directory: exec of '/www/cgi-bin/test.cgi' failed
[client 192.168.88.88] Premature end of script headers : test.cgi
-----------------------------------------------
上网搜索未果后安装mod_perl2.01模块,
在httpd.conf中设置
LoadModule perl_module modules/mod_perl.so
在<Directory "/www/cgi-bin">;添加如下内容
SetHandler perl-script
PerlResponseHandler ModPerl:Registry
PerlOptions +ParseHanders
Options +ExecCGI
然后再执行测试的CGI程序,这次可以显示系统环境env变量了.
再执行其它cgi程序,例如Bugzilla,一切正常
运行雷傲的install.cgi也没问题,可以配置路径帐号密码,到下一步提示进入管理界面时按进去就又提示错误了.
进入apache日志查看:
[error]ModPerl::Util::exit:: (120000) exit was called at /www/cgi-bin/bbs/bbs.lib.pl line 870Compolation failed in require at /www/cgi-bin/bbs/admin.cgi line 32.\n
根据论坛说明的权限都设置一样后运行admin.cgi出现的错误为
[error] Undefined subroutine &ModPerl::Root:ModPerl::Registry::www_cgi2_bin_bbs_admin_2ecgi:getmember called at /www/cgi-bin/bbs/admin.cgi line 138.\n
[error] Undefined subroutine &WebGzip::getStatus called at /www/cgi-bin/bbs/admin.cgi line 36.\n
最后就是这样样子了,暂时没想到别的方法尝试,各位,在linux成功安装雷傲的能不能说一下经验?看我的步骤是哪里错了?怎么我上网搜的文章设置都是那么的简单,可我又实现不了? :(
我认为错误可能出现在:我的配置失当,缺少某些Perl模块
排除的错误可能:权限配置,路径错误,^M 错误
软件环境 apache 2.0.54 、php5 、Perl 5.8.7 |
|