Install Bugzilla

From Initq
Jump to: navigation, search

This documentation will guide you through installing bugzilla on a debian system. You can this guide to install on any linux system as long as your use the correct package utility for your system.

Contents

Packages needed

  1. MySQL
  2. Perl (Including many modules)
  3. Apache

Apache Install

communication:~# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
apache2 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I ran this but realized that i already had Apache installed.

Mysql Install

communication:/var/www/test# apt-cache search mysql-server
auth2db - Powerful and eye-candy IDS logger, log viewer and alert generator
cacti - Frontend to rrdtool for monitoring systems and services
torrentflux - web based, feature-rich BitTorrent download manager
mysql-server - MySQL database server (metapackage depending on the latest version)
mysql-server-5.0 - MySQL database server binaries
communication:/var/www/test# apt-cache search mysql-client
torrentflux - web based, feature-rich BitTorrent download manager
mysql-client - MySQL database client (metapackage depending on the latest version)
mysql-client-5.0 - MySQL database client binaries
communication:/var/www/test# apt-cache search php5-mysql
php5-mysql - MySQL module for php5
Package configuration
 
                                            âââââââ⤠Configuring mysql-server-5.0 âââââââââ
                                            â                                             â
                                            â                                             â
                                            â Repeat password for the MySQL "root" user:  â
                                            â                                             â
                                            â ************_______________________________ â
                                            â                                             â
                                            â                   <Ok>                      â
                                            â                                             â
                                            âââââââââââââââââââââââââââââââââââââââââââââââ
 
 
Selecting previously deselected package libnet-daemon-perl.
(Reading database ... 93319 files and directories currently installed.)
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.38-1.1_all.deb) ...
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2017-1.1_all.deb) ...
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.605-1_i386.deb) ...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.007-1+lenny1_i386.deb) ...
Selecting previously deselected package mysql-client-5.0.
Unpacking mysql-client-5.0 (from .../mysql-client-5.0_5.0.51a-24+lenny3_i386.deb) ...
Selecting previously deselected package mysql-server-5.0.
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.0.51a-24+lenny3_i386.deb) ...
Selecting previously deselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.9-1_all.deb) ...
Selecting previously deselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.0.51a-24+lenny3_all.deb) ...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.0.51a-24+lenny3_all.deb) ...
Selecting previously deselected package php5-mysql.
Unpacking php5-mysql (from .../php5-mysql_5.2.6.dfsg.1-1+lenny6_i386.deb) ...
Processing triggers for man-db ...
Setting up libnet-daemon-perl (0.38-1.1) ...
Setting up libplrpc-perl (0.2017-1.1) ...
Setting up libdbi-perl (1.605-1) ...
Setting up libdbd-mysql-perl (4.007-1+lenny1) ...
Setting up mysql-client-5.0 (5.0.51a-24+lenny3) ...
Setting up mysql-server-5.0 (5.0.51a-24+lenny3) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
Setting up libhtml-template-perl (2.9-1) ...
Setting up mysql-client (5.0.51a-24+lenny3) ...
Setting up mysql-server (5.0.51a-24+lenny3) ...
Setting up php5-mysql (5.2.6.dfsg.1-1+lenny6) ...

We also need to install phpmyadmin so we can easily administer our databases. This normally install the GD library.

Bugzilla3 packages

Debian has very crude bugzilla packages that sometimes don't install fine but we installed them anyway.

communication:/var/www/bugzilla3# apt-cache search bugzilla
bugzilla3-doc - comprehensive guide to Bugzilla
bugzilla3 - web-based bug tracking system

Apache Changes

In debian apache2 file /etc/apache2/sites-enabled/000-default

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
 
        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
 
        #ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
 
        ErrorLog /var/log/apache2/error.log
 
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
 
        CustomLog /var/log/apache2/access.log combined
 
    Alias /docs/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order allow,deny
        #Deny from all
        #Allow from 127.0.0.0/255.0.0.0 ::1/128
        Allow from all
    </Directory>
 
    Alias /bugzilla3/ /usr/share/bugzilla3/web/
    Alias /cgi-bin/bugzilla3 /usr/lib/cgi-bin/bugzilla3
    Alias /bugzilla3_docs /usr/share/doc/bugzilla3-doc/html
 
        <Directory "/usr/lib/cgi-bin/bugzilla3">
                AllowOverride none
                Order allow,deny
                Allow from all
        </Directory>
 
       <Directory "/usr/share/doc/bugzilla3-doc/html">
                AllowOverride none
                Order allow,deny
                Allow from all
        </Directory>
 
       <Directory "/usr/share/bugzilla3/web">
                AllowOverride none
                Order allow,deny
                Allow from all
        </Directory>
 
        <Directory "/usr/lib/cgi-bin/bugzilla3">
                AddHandler cgi-script cgi
                DirectoryIndex index.cgi
                Options +Indexes +ExecCGI -MultiViews +SymLinksIfOwnerMatch +FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
 
        <Directory "/var/lib/bugzilla3/data">
                Options FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
 
</VirtualHost>

Folders for Bugzilla3

  • /etc/bugzilla3
  • /usr/lib/cgi-bin/bugzilla3
  • /usr/share/bugzilla3
  • /usr/share/doc/bugzilla3
Personal tools