Installing software can sometimes be very time consuming and frustrating. Knowing what to do can save you lots of time you can spend with your girlfriend, your wife, your kids or your buddies. The purpose of this article is to outline the sequence of events that have to take place in order to successfully install and configure Bugzilla 3.2 on Ubuntu 8.10.

Assumptions:

Ubuntu 8.10 is already installed and configured on your target machine.
The machine is connected to the Internet you can browse the World Wide Web.

Here are the main steps:

1.Install Per l(5.8.1 or above)
2.Install MySQL
3.Install Apache2
4.Install Bugzilla 3.2
5.Install Perl modules
6.Bugzilla using apache

1. Perl

Verify if Perl is installed:
michael@handyowner:~$ perl -v

If not installed :
michael@handyowner:~$ sudo apt-get install perl

2. MySQL

Verify if MySQL is installed:
michael@handyowner:~$ mysql -v

If not installed :
michael@handyowner:~$ sudo apt-get install mysql-client mysql-server mysql-admin

Create “bugzilla” user with a strong password:

michael@handyowner:~$ sudo useradd -d /home/bugzilla -m bugzilla
michael@handyowner:~$ sudo passwd bugzilla

Tip! Here is what makes a password strong: make it lengthy, combine letters, numbers and symbols, use words and phrases that are easy for you to remember, but difficult for others to guess.

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

michael@handyowner:~$ mysql -u root -p
mysql> create database bugzilla;

mysql> show databases;
+——————–+
| Database |
+——————–+
| information_schema |
| bugzilla |
+——————–+
2 rows in set (0.00 sec)

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

3. Apache2

Verify if Apache is installed:
michael@handyowner:~$ apache2 -v
view in a web browser the default welcome page at http://localhost

If not installed :
michael@handyowner:~$ sudo apt-get install apache2

4. Bugzilla 3.2.2
Download Bugzilla from the site “ http://www.bugzilla.org/”.

Tip! Download a stable release, unless (1) you would like to go bleeding edge, (2) you do not care about spending time with your girlfriend, your wife, your kids or your buddies, (3) your boss said so and you couldn’t say no.

Untar the downloaded file to your download folder
sudo tar -xvf bugzilla-3.2.2.tar

Move bugzilla dirrectory to /usr/local/
michael@handyowner:~$ sudo mv /download/bugzilla-3.2.2 /usr/local/

Make a symbolic link from /usr/local/bugzilla3.x to /var/www/bugzilla
michael@handyowner:~$ sudo ln -s /usr/local/bugzilla3.x /var/www/bugzilla

5. Perl Modules
Bugzilla’s installation process is based on a script called checksetup.pl. The first thing it checks is whether you have appropriate versions of all the required Perl modules. The aim of this section is to pass this check. When it passes, proceed to Section 2.2.
At this point, you need to su to root. You should remain as root until the end of the install. To check you have the required modules, run:

Verify if Perl modules are installed
michael@handyowner:~$:/usr/local/bugzilla-3.2.2$ sudo ./checksetup.pl –check-modules

If not installed:
michael@handyowner:~$:/usr/local/bugzilla-3.2.2$ sudo perl -MCPAN -e ‘install “”‘

Edit the ‘localconfig’ file
michael@handyowner:~$:/usr/local/bugzilla-3.2.2$ sudo gedit localconfig
Change the $db_pass value to the password for the ‘bugzilla’ user you created for the ‘bugzilla’ database.

Run the checksetup.pl again
michael@handyowner:~$:/usr/local/bugzilla-3.2.2$ sudo ./checksetup.pl

6. Configure Apache2 for Bugzilla

Add the following directives to /etc/apache2/apache2.conf

michael@handyowner:~$sudo gedit /etc/apache2/apache2.conf

Alias /bugzilla/ /var/www/bugzilla/


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

7. Additional security

create user “apache2″
michael@handyowner:~$ sudo useradd -d /home/apache2 -m apache2
michael@handyowner:~$ sudo passwd apache2

Edit /etc/apache2/envvars to add
export APACHE_RUN_USER=apache2
export APACHE_RUN_GROUP=apache2

Edit /usr/local/bugzilla-3.2.2/localconfig to add
$webservergroup = ‘apache2′;

Rerun checksetup.pl
michael@handyowner:~$:/usr/local/bugzilla-3.2.2$ sudo ./checksetup.pl

8. Check the Installation
Restart the apache server using the command
michael@handyowner:~$ sudo /etc/init.d/apache2 restart
Type the in your browser http://localhost/bugzilla/

Support this work, share it with friends ...
Tagged with: