在ubuntu 15.04上安装bugzilla的问题

我正在尝试安装Bugzilla。

我在我的系统中安装了Phpmyadmin ,因此我无法按照Bugzilla网站上的说明告诉我删除/var/www/html文件夹,因为我在那里有Phpmyadmin

除了我在askubuntu上看过这里的说明,但我不想在我的机器上创建其他用户,我想为我的默认用户安装Bugzilla,因为我是唯一一个使用这台机器的用户。

以下是我遵循的步骤:

 sudo su apt-get install git nano apt-get install apache2 mysql-server libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-sender-perl libemail-mime-perl libemail-mime-modifier-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl apache2-mpm-prefork libapache2-mod-perl2 libapache2-mod-perl2-dev libchart-perl libxml-perl libxml-twig-perl perlmagick libgd-graph-perl libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl libtest-taint-perl libauthen-radius-perl libfile-slurp-perl libencode-detect-perl libmodule-build-perl libnet-ldap-perl libauthen-sasl-perl libtemplate-perl-doc libfile-mimeinfo-perl libhtml-formattext-withlinks-perl libgd-dev lynx-cur python-sphinx cd /var/www/html git clone --branch release-5.0-stable https://git.mozilla.org/bugzilla/bugzilla bugzilla cd bugzilla gedit /etc/mysql/my.cnf` 

在第52行改变: max_allowed_packet=100M

[mysqld]部分添加为新行31: ft_min_word_len=2

 mysql -u root -p -e "GRANT ALL PRIVILEGES ON bugs.* TO bugs@localhost IDENTIFIED BY '$my_pass'" service mysql restart gedit /etc/apache2/sites-available/bugzilla.conf` 

添加:

 ServerName localhost  AddHandler cgi-script .cgi Options +ExecCGI DirectoryIndex index.cgi index.html AllowOverride Limit FileInfo Indexes Options  

然后:

 a2ensite bugzilla a2enmod cgi headers expires service apache2 restart cd /var/www/html/bugzilla ./checksetup.pl 

它给了我一些错误,所以我运行:

 /usr/bin/perl install-module.pl –all ./checksetup.pl gedit localconfig 

第29行:将$webservergroup设置$webservergroup www-data

第67行:在几步之前将$db_pass设置$db_pass我在MySQL中创建的错误用户的密码

 ./checksetup.pl (again) ./testserver.pl http://localhost/ 

然后我收到这个错误:

 strictures.pm extra testing active but couldn't load all modules. Missing were: indirect multidimensional bareword::filehandles Extra testing is auto-enabled in checkouts only, so if you're the author of a strictures-using module you need to run: cpan indirect multidimensional bareword::filehandles but these modules are not required by your users. TEST-OK Webserver is running under group id in $webservergroup. TEST-FAILED Fetch of images/padlock.png failed Your web server could not fetch http://localhost/images/padlock.png. Check your web server configuration and try again. 

那我做错了什么?

如你所见,我想安装Bugzilla /var/www/html/文件夹,我也有Phpmyadmin所以我将: /var/www/html/bugzilla

谢谢。

编辑 :运行后: cpan indirect multidimensional bareword::filehandles问题仍然是:

 TEST-OK Webserver is running under group id in $webservergroup. TEST-FAILED Fetch of images/padlock.png failed Your web server could not fetch http://localhost/images/padlock.png. Check your web server configuration and try again. 

编辑2

好的,我在apache2 /var/log/other_vhosts_access.log

 localhost:80 127.0.0.1 - - [27/Jul/2015:10:29:06 +0200] "GET /images/padlock.png HTTP/1.1" 404 469 "-" "libwww-perl/6.05" 

/var/log/error.log

 [Mon Jul 27 10:14:38.112755 2015] [mpm_prefork:notice] [pid 7477] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations [Mon Jul 27 10:14:38.112794 2015] [core:notice] [pid 7477] AH00094: Command line: '/usr/sbin/apache2' 

对我来说(Linux Mint 17.2; Bugzilla 5.0.1,Apache 2.4.7)这有助于(最后,在尝试了很多其他事情之后):

AllowOverride Limit FileInfo Indexes Options更改为AllowOverride All

我遇到了与Ubuntu 14.04,apache 2.4.7,bugzilla 5.0相同的问题。 也想设置为http:// localhost / bugzilla 。

诀窍是想……是的,简单。

你执行了:

 ./testserver.pl http://localhost 

实际上你应该使用它

 ./testserver.pl http://localhost/bugzilla 

因为它需要输入自己的位置(是的,非常愚蠢)。

我遇到了同样的问题。 我的问题也与AllowOverride设置有关。 它位于文件/etc/apache2/sites-enabled/000-default.conf ,并设置为以下内容:

  <"Directory /var/www/html/bugzilla> AddHandler cgi-script cgi DirectoryIndex index.cgi Options +Indexes +ExecDGI +FollowSymLinks +MultiViews AllowOverride Limit Order Allow,deny Allow from all   

AllowOverride行已更改为:

 AllowOverride None 

文件/etc/apache2/sites-enabled/bugzilla.conf具有以下目录条目:

  AddHandler cgi-script .cgi Options +ExecCGI +FollowSymLinks DirecortryIndex index.cgi index.html AllowOverride All  

这解决了我的问题。