Installing Bugzilla on Fedora 11

June 10, 2010

Basic Install

Here's the initial commands to install bugzilla and then restart apache. This assumes that Apache and Postgres are already installed.

yum install bugzilla 
yum install bugzilla-contrib
/etc/init.d/httpd restart

http://localhost/bugzilla now gives:

The /var/lib/bugzilla/data/params file does not exist. You probably need to run at Bugzilla/ line 333.
Compilation failed in require at /usr/share/bugzilla/index.cgi line 34.
BEGIN failed--compilation aborted at /usr/share/bugzilla/index.cgi line 34.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

Install Database Driver

To install database driver:

yum install postgresql-devel
/usr/bin/perl DBD::Pg

This will prompt for the path to pg_config, you can find this by running

find / -name "pg_config" -print

for me the value was /usr/bin/pg_config

Create Database

You now need to create a database, with a user to access it. In pgsql:

create database bugs;
create user bugs with password 'password';
grant all on database bugs to bugs


Now need to edit /etc/bugzilla/localconfig. Fill in the database connection details, and set the database driver to be postgres:

# What SQL database to use. 
$db_driver = 'pg';

# The DNS name of the host that the database server runs on.
$db_host = 'localhost';

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

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

# Enter your database password here.
$db_pass = 'password';


Re-running will now connect to the database, and create the required tables.

Next, install the required modules, allow anything to read the .htaccess file, and bounce Apache once more.

/usr/bin/perl --all
cd /usr/share/bugzilla
chmod a+r .htaccess
/etc/init.d/httpd restart


I had problems where Bugzilla would prompt on every page for a login. To fix this, set the cookiedomain to blank, and the cookiepath to /bugzilla/, assuming that's the offset it's installed at.