Wednesday, February 29, 2012

Bugzilla Post 3

How to install bugzilla on Windows

download the bugzilla setup file from http://www.bugzilla.org/download/

Run the exe file to install

Give the installation path. The default path is C:\Program Files (x86)\Bugzilla\

Give your email address and a password for bugzilla account

Enter passwords for root access

Again enter your email address and smtp server address of your email provider

Click Finish

Bugzilla Post 2

How to Install
for windows users use the following link : http://landfill.bugzilla.org/win32installer/Bugzilla-Setup-3.6.3.exe
installing Bugzilla is not that simple thing. And this section tries to go through the installation process of Bugzilla in Ubuntu 10.10.
To do that you must have the administrative rights for your Ubuntu machine and before proceed please connect the machine to the Internet because you will have to install various software tools from the internet.
And all these commands mentioned below can be executed in Ubuntu terminal.
This post will describe the process step by step.
Step1: Install Perl
You can verify whether the Perl is installed on your machine by following command:
$perl -v

if perl is not installed in your machine use the following command:
$sudo apt-get install perl

then if you run the $perl -v command again you will get a message like this. That means now you have successfully installed perl in your machine.

lasitha@ubuntu:~$ perl -v



This is perl 5, version 12, subversion 4 (v5.12.4) built for i686-linux-gnu-thread-multi-64int

(with 45 registered patches, see perl -V for more detail)



Copyright 1987-2010, Larry Wall



Perl may be copied only under the terms of either the Artistic License or the

GNU General Public License, which may be found in the Perl 5 source kit.



Complete documentation for Perl, including FAQ lists, should be found on

this system using "man perl" or "perldoc perl". If you have access to the

Internet, point your browser at http://www.perl.org/, the Perl Home Page.



lasitha@ubuntu:~$


Step2: Install MySQL
as in the step1 use the following command to check whether your machine have mysql in it.
$mysql –-version

if mysql is not installed in your machine:
$sudo apt-get install mysql-client mysql-server mysql-admin

while doing that you will be asked for some additional disk space and type “y” and press enter to continue. And you will have to setup a password for root also.
then if you run the $mysql –-version again you will get a message like this.
lasitha@ubuntu:~$ mysql --version

mysql Ver 14.14 Distrib 5.1.58, for debian-linux-gnu (i686) using readline 6.2

lasitha@ubuntu:~$

then create a new user named “bugzilla” by using the following command.
$sudo useradd -d /home/bugzilla -m bugzilla
$sudo passwd bugzilla
enter a password here and press enter.

Next goto mysql using following command:

$mysql -u root -p
mysql>

Now create a new database named bugzilla using following query:

mysql> create database bugzilla;

Now you can view the databases in your machine using the following command, and it will list down all the databases.
mysql> show databases;
mysql> show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| bugzilla |

| mysql |

+--------------------+

3 rows in set (0.03 sec)



mysql>


use the following sql queary to grant privileges to user bugzilla.

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

after that quit from the mysql using the following command:
mysql> quit
Step3: install Apache2
To verify that apache2 is installed use the following command:

lasitha@ubuntu:~$ apache2 -v

Server version: Apache/2.2.20 (Ubuntu)

Server built: Sep 6 2011 18:36:07

lasitha@ubuntu:~$

You can also verify that by going to the page “http://localhost” using your web browser.
If apache2 is not installed use the following command to install that:

$sudo apt-get install apache2
this will also ask for the additional disk space and enter “y” for that.
If you get something like “error404” you have to set a small setting in your machine. Goto /etc/apt/sources.list and allow other sources. Then try the above command again and it should install apache2.

Step4: Installing Bugzilla
Download a stable version of Bugzilla from the site “http://www.bugzilla.org
Untar the tar file using the following command:

$ tar -xvf Downloads/bugzilla-X.X.X.tar
###Note: X.X.X should be replaced by the acctual version number you have downloaded.
Then move that untared directory to /usr/local/ using the following command:
$sudo mv /Downloads/bugzilla-X.X.X /usr/local/
Then make a symbolic link from /usr/local/bugzilla-X.X.X to /var/www/bugzilla using the following command:
$sudo ln -s /usr/local/bugzilla-X.X.X /var/www/bugzilla

Step5: Setting up Perl Modules
Now you can continue your installation process by running checksetup.pl
$:/usr/local/bugzilla-4.2rc2$ sudo ./checksetup.pl --check-modules

if the required perl modules are not installed:
$:/usr/local/bugzilla-4.2rc2$ sudo perl -MCPAN -e install

and you have to change the localconfig file as follows
$:/usr/local/bugzilla-4.2rc2$ sudo gedit localconfig

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

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

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

then run the checksetup.pl again
$:/usr/local/bugzilla-4.2rc2$ sudo ./checksetup.pl

now you have to change apache2 configurations
$sudo gedit /etc/apache2/apache2.conf


Alias /bugzilla/ /var/www/bugzilla/

AddHandler cgi-script .cgi .pl
Options +Indexes +ExecCGI +FolloSymLinks
DirectoryIndex index.cgi
AllowOverride Limit


Then You have to create a new user called "apache2"
$ sudo useradd -d /home/apache2 -m apache2
$ sudo passwd apache2

then change the file /etc/apache2/envvars as follows
export APACHE_RUN_USER=apache2
export APACHE_RUN_GROUP=apache2

and change the /usr/local/bugzilla-4.2rc2/localconfig as follows

$webservergroup = ‘apache2′;

now rerun the checksetup.pl

$:/usr/local/bugzilla-4.2rc2$ sudo ./checksetup.pl


Now you have successfully installed bugzilla

restart the apache server:

$ sudo /etc/init.d/apache2 restart

and goto http://localhost/bugzilla/ from your browser






Bugzilla Post 1

Introduction to Bugzilla

Bugzilla is a web base system using for bug- or issue-tracking in software developing under quality assurance. In sense of a Bug tracking system, it is a tool which allows individual or groups of developers effectively to keep track of unsettled problems with their product. Bugzilla was originally written by Terry Weissman in 1998 using a programming language called TCL, to replace a rudimentary bug tracking database used internally by Netscape Communications. Terry later ported Bugzilla to Perl from TCL, and in Perl it remains to this day. Bugzilla quickly became a favorite of the open-source crowd (with its genesis in the open-source browser project, Mozilla). It is now the de-facto standard defect-tracking system against which all others are measured.

Bugzilla boasts many advanced features. These include:

· Powerful searching

· User-configurable email notifications of bug changes

· Full change history

· Inter-bug dependency tracking and graphing

· Excellent attachment management

· Integrated, product-based, granular security schema

· Fully security-audited, and runs under Perl's taint mode

· A robust, stable RDBMS back-end

· Web, XML, email and console interfaces

· Completely customisable and/or localisable web user interface

· Extensive configurability

· Smooth upgrade pathway between versions