2013年7月23日 星期二

Procedure to install Bugzilla on Debian Wheezy without using install-module.pl


Procedure to install Bugzilla on Debian Wheezy without using install-module.pl

No build-essential / make  or other development  package needed, no CPAN / perl module manually compile needed.

Pre-request:

  1. system already installed apache2 and mysql and perl.
  2. already configured mysql user/password for bugzilla, using root or other account



##get bugzilla tarball
wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.tar.gz
tar xzvf bugzilla-4.4.tar.gz
mv bugzilla-4.4 /var/www/bugzilla

##install necessary perl modules
apt-get install libapache2-mod-perl2 libdatetime-perl libemail-send-perl libtemplate-perl libemail-mime-perl liburi-perl liblist-moreutils-perl  libmath-random-isaac-perl libgd-graph-perl libchart-perl libtemplate-plugin-gd-perl

##generate localonfig file by ./checksetup.pl
cd /var/www/bugzilla
./checksetup.pl

##modify localconfig
## Debian use www-data:www-data as apache2 daemon user:group
vi localconfig
change --> $webservergroup = 'www-data';
change --> $db_user = 'user For Bugzilla';
change --> $db_pass = 'password For Bugzilla';

##run checksetup.pl again , auto setup db and administrator users
## checksetup.pl will ask for administrator email as admin account
Enter the e-mail address of the administrator: bug@m$
Enter the real name of the administrator: M$ Bug
Enter a password for the administrator account:
Please retype the password to verify:
dodgelin@gmail.com is now set up as an administrator.


## modify /etc/apache2/apache2.conf , append floolwing two line, like below
tail -2 /etc/httpd/conf/httpd.conf
PerlSwitches -I/var/www/bugzilla -I /var/www/bugzilla/lib -w -T
PerlConfigRequire /var/www/bugzilla/mod_perl.pl

## add apache2 alias config
vi /etc/apache2/conf.d/bugzilla

## add bugzilla alias as following
Alias /bugzilla/ "/var/www/bugzilla/"

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



##modify /var/www/bugzilla/mod.pl
##remark following lines due to lack of Apache::SizeLimit
##otherwise you will see a error message when starting APACHE2 
## "You must install Linux::Pid for Apache::SizeLimit to work on your platform."
vi /var/www/bugzilla/mod.pl

##find following section and remark it.
#use Apache2::SizeLimit;
# This means that every httpd child will die after processing
# a CGI if it is taking up more than 45MB of RAM all by itself,
# not counting RAM it is sharing with the other httpd processes.
#Apache2::SizeLimit->set_max_unshared_size(45_000);

## restart apache2
/etc/init.d/apache2 restart

##Done.







沒有留言: