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

Cannot load package information. Is the atom www-apps/bugzilla correct?

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

Apache

FILE /etc/portage/package.use/apache
www-servers/apache APACHE2_MODULES: access_compat

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