Friday, December 17, 2010

Installing Bugzilla 3.6.3 and Testopia on Ubuntu Server 10.4

-Install/Verify perl installed.
perl -v
if not installed: sudo apt-get install perl

-Install mysql
~$ sudo apt-get install mysql-client mysql-server mysql-admin

-mysql root password - tdc1337


-Create "bugzilla" user

sudo useradd -d /home/bugzilla -m bugzilla

sudo passwd bugzilla
bugzilla user password - 'password'

-Create a database ‘bugzilla’ and grant privileges to ‘bugzilla’ database to ‘bugzilla’ user:

mysql -u root -p
mysql>create database bugzilla;


-Grant privileges to bugzilla user

msql>grant all privileges on bugzilla.* to bugzilla@localhost;

-Now install Bugzilla 3.6.3


wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-3.6.3.tar.gz

-Move to var/www/

mv bugzilla-3.6.3.tar.gz /var/www/

-untar


sudo tar xzf bugzilla-3.6.3.tar.gz

-Move from bugzilla-3.6.3 to bugzilla

mv bugzilla-3.6.3 bugzilla

-Enable root


-Run perl checksetup to verify necessary modules installed

./checksetup.pl --checksetup-modules

-Install all required modules separately


-Rerun ./checksetup.pl


-Edit Bugzilla's localconfig file

$webservergroup = 'www-data';
$db_driver = 'mysql';
$db_name = 'bugzilla';
$db_user = 'root';
$db_pass = 'password';

-Configure apache for Bugzilla by editing the following files:

/etc/apache2/apache2.conf
/etc/apache2/conf/sites-enabled/000-default
to include:


Options +ExecCGI
AddHandler cgi-script .cgi



Done with Bugzilla Installation.

-Install Testoptia-


-Download testopia for bugzilla 3.6 :

cd /var/www/bugzilla-3.6.3
wget ftp://ftp.mozilla.org/pub/mozilla.org/webtools/testopia/testopia-2.4-BUGZILLA-3.6.tar.gz
tar xzf testopia-2.4-BUGZILLA-3.6.tar.gz

-From var/www/bugzilla, run ./checksetup.pl


-Install any missing perl files


-Patch the necessary Bugzilla files


patch -p0 -i extensions/Testopia/patch-3.6

-From var/www/bugzilla, run ./checksetup.pl


Done. Testopia should be successfully installed.