This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Bugzilla

From Gentoo Wiki (test)
Jump to:navigation Jump to: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

apache2 Add Apache2 support
doc Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
mysql Add mySQL Database support
postgres Add support for the postgresql database
sqlite Add support for sqlite - embedded sql database
test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
vhosts Add support for installing web-based applications into a virtual-hosting environment

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