Tuesday, May 4, 2010

Installing Bugzilla on Windows

Bugzilla is a Web-based general-purpose bugtracker and testing tool originally developed and used by the Mozilla project, and licensed under the Mozilla Public License. Bugzilla is usually runs on Linux or Solaris. But it is possible to install it in other Operating Sytems and here are the steps to install Bugzilla on Windows OS

Things to download:
Steps to Install:
  • Extract Bugzilla TarBall archive to the directory of your choice. Eg: C:\Bugzilla.
  • Install the MySQL as usual.
  • Create a database for bugzilla on MySQL database using the following command.
create database bugs;
GRANT ALL PRIVILEGES ON bugs.* TO 'bugs'@'localhost' IDENTIFIED BY 'sockmonkey';
  • Download the ActiveStatePerl and install it to C:\Perl.
  • To avoid problems, create the C:\Temp directory (it has to be on drive C) and ensure SYSTEM has write and modify access.
  • Bugzilla requires a number of perl modules to be installed. Following are the commands and output for this installation.
  • Download and install the Apache HTTP server.
  • Edit the C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf to set the Document root as follows.It is necessary to change both DocumentRoot and properties.
  • Enable the CGI handler by uncommenting AddHandler cgi-script.cgi line as follows.
  • Allow .cgi scripts in the Bugzilla directory by adding the ExecCGI option as follows.
  • Allow Bugzilla's .htaccess file to restrict access to sensitive documents by allowing it to override the defaults. This involves changing AllowOverride None to AllowOverride All as follows.
  • Add index.cgi to the DirectoryIndex list.
  • For ScriptInterpreterSource Registry-Strict to work, add an entry to the Registry so Apache will use Perl to execute .cgi files. Create a key HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command with the default value of the full path of perl.exe with a -T parameter as follows.

  • Disable logging by commenting out the CustomLog directive as follows.
  • Finally, restart Apache to get it pick up the changes.
  • Run C:\Bugzilla\checksetup.pl to check the Perl modules and create localconfig as follows.
  • Open C:\Bugzilla\localconfig to configure Bugzilla add the db_pass as follows.
  • Run checksetup.pl again. This time it will build the database tables and initialise Bugzilla.
  • Go to and http://localhost/ log into to Bugzilla using the account checksetup.pl just created.

References : Bugzilla:Win32Install