Bugzilla

From Gentoo Wiki
Jump to: navigation, search
 As of April 10th, 2015, the information in this article is probably outdated. You can help the Gentoo community by verifying and updating this article.
Resources
Note
This article refers to the Bugzilla web application. Go here for the Gentoo Bugzilla guide.

Bugzilla is a web application for tracking bugs. It is helpful in software development and is a means to problem resolution.0

Installation

USE flags

USE flags for www-apps/bugzilla Bugzilla is the Bug-Tracking System from the Mozilla project

extras Optional Perl modules local
graphviz Add support for the Graphviz library global
modperl Enable www-apache/mod_perl support local
mysql Add mySQL Database support global
postgres Add support for the postgresql database global
sqlite Add support for sqlite - embedded sql database global
test Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore global
vhosts Add support for installing web-based applications into a virtual-hosting environment global

Emerge

root #emerge --ask www-apps/bugzilla

MySQL

Install MySQL, then create a database for Bugzilla:

root #mysql -u root -p
mysql> CREATE DATABASE IF NOT EXISTS `bugs` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
mysql> CREATE USER 'bugs'@'localhost' IDENTIFIED BY 'changeme';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `bugs`.* TO 'bugs'@'localhost' IDENTIFIED BY 'changeme';
mysql> \q

Configuration

Adjust configs

FILE /var/www/localhost/htdocs/bugzilla/localconfig
$db_pass = 'changeme';
FILE /etc/mysql/my.cnf
max_allowed_packet = 4M
root #/var/www/localhost/htdocs/bugzilla/checksetup.pl
root #
cat >> /etc/apache2/vhosts.d/default_vhost.include << EOF
<Directory /var/www/localhost/htdocs/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi index.html
AllowOverride All FileInfo Indexes Options
Require all granted
</Directory>
EOF
root #/etc/init.d/apache2 restart

Web end

Finally, point a web browser to http://127.0.0.1/bugzilla/

See also