我尝试在Ubuntu上安装bugzilla 4.2.4。
经过多次努力修复了所有依赖项,但是当我运行./checksetup.pl
时,我得到了
WARNING: We could not check the configuration of Apache. This sometimes happens when you are not running checksetup.pl as root. To see the problem we ran into, run: /usr/sbin/apache2 -t -D DUMP_MODULES *********************************************************************** * OPTIONAL MODULES * *********************************************************************** * Certain Perl modules are not required by Bugzilla, but by * * installing the latest version you gain access to additional * * features. * * * * The optional modules you do not have installed are listed below, * * with the name of the feature they enable. Below that table are the * * commands to install each module. * *********************************************************************** * MODULE NAME * ENABLES FEATURE(S) * *********************************************************************** * Apache-SizeLimit * mod_perl * *********************************************************************** COMMANDS TO INSTALL OPTIONAL MODULES: Apache-SizeLimit: /usr/bin/perl install-module.pl Apache2::SizeLimit To attempt an automatic install of every required and optional module with one command, do: /usr/bin/perl install-module.pl --all
当我尝试最后一个命令时,我得到了
Checking for CPAN (v1.81) ok: found v1.94 Checking for YAML (any) ok: found v0.84 Checking for ExtUtils-MakeMaker (v6.31) ok: found v6.64 Return::Value is deprecated at /home/user/Downloads/bugzilla-4.2.4/lib/Return/Value.pm line 13 require Return/Value.pm called at /home/user/Downloads/bugzilla-4.2.4/lib/Email/Send.pm line 11 Email::Send::BEGIN() called at /home/user/Downloads/bugzilla-4.2.4/lib/Return/Value.pm line 0 eval {...} called at /home/user/Downloads/bugzilla-4.2.4/lib/Return/Value.pm line 0 require Email/Send.pm called at (eval 76) line 1 eval 'require Email::Send;' called at /home/user/Downloads/bugzilla-4.2.4/Bugzilla/Install/Requirements.pm line 668 Bugzilla::Install::Requirements::have_vers('HASH(0x200d8c8)', 0) called at /home/user/Downloads/bugzilla-4.2.4/Bugzilla/Install/Requirements.pm line 445 Bugzilla::Install::Requirements::_check_missing('ARRAY(0x20af3a0)', 0) called at /home/user/Downloads/bugzilla-4.2.4/Bugzilla/Install/Requirements.pm line 409 Bugzilla::Install::Requirements::check_requirements(0) called at install-module.pl line 89 WARNING: We could not check the configuration of Apache. This sometimes happens when you are not running checksetup.pl as root. To see the problem we ran into, run: /usr/sbin/apache2 -t -D DUMP_MODULES Going to read '/home/user/.cpan/Metadata' Database was generated on Mon, 18 Feb 2013 05:53:02 GMT Installing Apache2::SizeLimit version 0.96... Apache2::SizeLimit is up to date (0.97).
当我尝试使用url时,localhost / bugzilla /我得到了
Software error: The ./data/params file does not exist. You probably need to run checksetup.pl. at Bugzilla/Config.pm line 337. Compilation failed in require at /var/www/bugzilla/index.cgi line 34. BEGIN failed--compilation aborted at /var/www/bugzilla/index.cgi line 34. For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.
答案 0 :(得分:0)
尝试设置通常包含在/ etc / apache2 / envvars中的变量:
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
然后运行此命令进行测试:
/usr/sbin/apache2 -t -D DUMP_MODULES
这应该摆脱你提到的第一个警告。再次运行checksetup.pl,因为这应该生成数据/参数。