Probleme bei der Installation von Bugzilla unter Ubuntu 15.04

Probleme bei der Installation von Bugzilla unter Ubuntu 15.04

Ich versuche, Bugzilla zu installieren.

Ich habe Phpmyadminin meinem System installiert, so dass ich nicht folgen kann dieAnweisungenauf der Bugzilla-Site wird mir gesagt, dass ich den /var/www/htmlOrdner entfernen soll, weil ich ihn Phpmyadmindort habe.

Außerdem habe ich die Anleitung hier gesehen aufAbonnieren, aber ich möchte auf meinem Computer keine anderen Benutzer erstellen und Bugzilla für meinen Standardbenutzer installieren, da ich der Einzige bin, der diesen Computer verwendet.

Hier sind die Schritte, die ich befolgt habe:

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`

Geändert in Zeile 52:max_allowed_packet=100M

Hinzugefügt als neue Zeile 31 im [mysqld]Abschnitt: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`

Hinzugefügt:

ServerName localhost
<Directory /var/www/html>
  AddHandler cgi-script .cgi
  Options +ExecCGI
  DirectoryIndex index.cgi index.html
  AllowOverride Limit FileInfo Indexes Options
</Directory>

Dann:

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

Es gab einige Fehler, also habe ich Folgendes ausgeführt:

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

Zeile 29: gesetzt $webservergroupaufwww-data

Zeile 67: setze $db_passdas Passwort für den Bugs-Benutzer ein, den ich vor einigen Schritten in MySQL erstellt habe

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

Und dann erhalte ich diesen Fehler:

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.

Also, was habe ich falsch gemacht?

Wie Sie sehen, möchte ich den Bugzilla- /var/www/html/Ordner dort installieren, wo ich auch PhpmyadminFolgendes habe: /var/www/html/bugzilla.

Danke.

Bearbeiten: nach dem Ausführen: cpan indirect multidimensional bareword::filehandlesdas Problem besteht weiterhin:

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.

Bearbeiten 2:

Ok, das einzige, was ich in apache2den Protokollen gefunden habe, ist /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"

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

Antwort1

Ich habe das gleiche Problem mit Ubuntu 14.04, Apache 2.4.7, Bugzilla 5.0. Möchte auch alshttp://localhost/bugzilla.

Der Trick bestand darin,... ja, einfach zu denken.

Sie haben Folgendes ausgeführt:

./testserver.pl http://localhost

obwohl Sie eigentlich hätten verwenden sollen

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

da es als Eingabe seinen eigenen Standort benötigt (ja, ziemlich dumm).

Antwort2

Bei mir (Linux Mint 17.2; Bugzilla 5.0.1, Apache 2.4.7) hat dies geholfen (endlich, nachdem ich viele andere Dinge ausprobiert hatte):

Gewechselt AllowOverride Limit FileInfo Indexes OptionszuAllowOverride All

Antwort3

Ich habe das gleiche Problem. Das Problem hing bei mir AllowOverrideauch mit der Einstellung zusammen. Diese steht in der Datei /etc/apache2/sites-enabled/000-default.confund wurde wie folgt eingestellt:

<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>

Die Zeile AllowOverridewurde wie folgt geändert:

AllowOverride None

Die Datei /etc/apache2/sites-enabled/bugzilla.confhat den folgenden Verzeichniseintrag:

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

Das hat das Problem für mich behoben.

verwandte Informationen