在ubuntu 15.04上安裝bugzilla的問題

在ubuntu 15.04上安裝bugzilla的問題

我正在嘗試安裝 Bugzilla。

我已經Phpmyadmin安裝在我的系統中,所以我無法遵循指示在 Bugzilla 網站上,它告訴我刪除該/var/www/html資料夾,因為我Phpmyadmin在那裡。

另外我已經看到了這裡的說明阿庫本圖,但我不想在我的電腦上創建其他用戶,並且我想為我的預設用戶安裝 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

新增為新第 31 行,在以下[mysqld]部分: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
<Directory /var/www/html>
  AddHandler cgi-script .cgi
  Options +ExecCGI
  DirectoryIndex index.cgi index.html
  AllowOverride Limit FileInfo Indexes Options
</Directory>

然後:

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行:設定$webservergroupwww-data

第 67 行:設定$db_pass為我幾步前在 MySQL 中建立的 bugs 使用者的密碼

./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'

答案1

我在 Ubuntu 14.04、apache 2.4.7、bugzilla 5.0 上遇到同樣的問題。還想設定為http://localhost/bugzilla

訣竅是思考……是的,簡單地說。

你執行了:

./testserver.pl http://localhost

事實上你應該使用

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

因為它需要自身的位置作為輸入(是的,非常愚蠢)。

答案2

對我來說(Linux Mint 17.2;Bugzilla 5.0.1,Apache 2.4.7)這很有幫助(最後,在嘗試了很多其他事情之後):

AllowOverride Limit FileInfo Indexes Options變成AllowOverride All

答案3

我遇到了同樣的問題。對我來說,問題AllowOverride也與設定有關。它位於文件中/etc/apache2/sites-enabled/000-default.conf並設定為以下內容:

<VirtualHost *:80>
  <"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
  <Directory>
<VirtualHost>

該行AllowOverride更改為:

AllowOverride None

該檔案/etc/apache2/sites-enabled/bugzilla.conf具有以下目錄條目:

<Directory /var/www/html>
    AddHandler cgi-script .cgi
    Options +ExecCGI +FollowSymLinks
    DirecortryIndex index.cgi index.html
    AllowOverride All
</Directory>

這為我解決了這個問題。

相關內容