Requirements
1.Download latest stable version of Bugzilla from http://www.bugzilla.org/download, unzip the archive to a directory and rename it as bugzilla (Its not mandatory, you can give any other name).
2. Copy bugzilla directory to document root in web server and start web server.
3.Enter into bugzilla directory and run --check-modules (Before this step, check whether Perl installed on your machine or not, with perl -v commend)
4.Please check the output generated by ./checksetup.pl (the output will be like this http://twincling.pastebin.com/f45005225 ) and install required Perl modules.
Example: Checking for DBD-mysql (v4.00) not found
Install the required module DBD-mysql
/usr/bin/perl install-module.pl DBD::mysql
follow the output generated by ./checksetup.pl --check-modules to install all the required modules.
5.You need to add a new MySQL user for Bugzilla to use.(It's not safe to have Bugzilla use the MySQL root account.). Use an SQL GRANT command to create a "bugs" user. This also restricts the "bugs"user to operations within a database called "bugs", and only allows the account to connect from "localhost". Modify it to reflect your setup if you will be connecting from another machine or as a different user. Run the mysql command-line client and enter:
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY '$db_pass'
mysql> FLUSH PRIVILEGES;
6.Open localconfig file which located in bugzilla directory, and make the changes according to your database configuration sample file is like this http://twincling.pastebin.com/fe881e9c
Example:
$db_driver = 'mysql';
$db_host = 'localhost';
$db_name = 'bugs';
$db_user = 'dbuser';
$db_pass = 'dbpass';
7.Run ./checksetup.pl again, if every thing you have provided in localconfig file is correct, bugzilla will be installed, while installation it will ask for administrator e-mail id and password for maintenance, so please remember those.
8.Apache httpd with mod_cgi
To configure your Apache web server to work with Bugzilla while using mod_cgi, do the following:
Apache uses <Directory> directives to permit fine-grained permission setting. Add the following lines to a directive that applies to the location of your Bugzilla installation. (If such a section does not exist, you'll want to add one.) In this example, Bugzilla has been installed at /var/www/html/bugzilla
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>
9.Now bugzilla is ready, to open Bugzilla administrator window, open your bugzilla URL, example http://localhost:8080/bugzilla.(It is my configuration, so please change localhost with your web server hostname or ip address, 8080 with port, bugzilla with directory where you have instaled).
For complete documentation please refer http://www.bugzilla.org/docs/3.2/en/html/