Bugzilla:Linux Distro Installation

From MozillaWiki
Jump to: navigation, search

This page is for instructions on how to install Bugzilla on specific Linux Distributions. If you are running Bugzilla on a distro that isn't listed here, please add instructions on how to set it up. Or, put in a link to instructions on your distro's wiki.


Gentoo pulls in all dependencies and, if you don't have the vhosts USE flag enabled, installs Bugzilla to /var/www/localhost/bugzilla when you issue:

# emerge -av bugzilla

You will then have to configure and install your database according to your needs:

For a first time MySQL install:

# mysql_install_db


# mysql -u root -p
mysql>CREATE DATABASE databasename;
mysql>GRANT <privs> ON databasename.* to 'bugzillauser'@'hostname' identified by 'pa$$w0rd';

And party like a rock star because you have the better distro.


Please be aware of this: https://bugzilla.mozilla.org/show_bug.cgi?id=415605 (Please remove this link once determined the RPM has been repaired)

Bugzilla and its dependencies are in the Fedora yum repository. To install Bugzilla and all its Perl dependencies, simply do (as root)

$ yum install bugzilla

You also need to install the database engine and web server, for example MySQL and httpd:

$ yum install httpd mysql-server

The Fedora packages automatically do the httpd configuration, so there is no need to worry about that.

To configure MySQL, you need to add the bugs user and bugs database to MySQL. You can do this with the normal MySQL tools - either use the command line, the mysqladmin tool, or the mysql-administrator GUI tool. You can also use a web-based control panel like PHPMyADMIN. Make sure the "bugs" user has write permissions ot the "bugs" database.

The next step is to configure /etc/bugzilla/localconfig with the right database information:

# The name of the database
$db_name = 'bugs';

# Who we connect to the database as.
$db_user = 'bugs';

# Enter your database password here. It's normally advisable to specify
# a password for your bugzilla database user.
# If you use apostrophe (') or a backslash (\) in your password, you'll
# need to escape it by preceding it with a '\' character. (\') or (\)
# (Far simpler just not to use those characters.)
$db_pass = 'PASSWORD';

Fedora stores the Bugzilla files in /usr/share/bugzilla. Change into that directory and run the checksetup.pl script. If any problems are encountered here, you can refer to the Bugzilla user guide.

Finally, start mysqld and httpd and browse to http://localhost/bugzilla