2016/05/26

How to Install Bugzilla 5.0 on Ubuntu Server 14.04

-------Install Prerequisites-------
apt-get update
apt-get install -y git nano
apt-get install -y apache2 mysql-server libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-sender-perl libemail-mime-perl libemail-mime-modifier-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl apache2-mpm-prefork libapache2-mod-perl2 libapache2-mod-perl2-dev libchart-perl libxml-perl libxml-twig-perl perlmagick libgd-graph-perl libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl libtest-taint-perl libauthen-radius-perl libfile-slurp-perl libencode-detect-perl libmodule-build-perl libnet-ldap-perl libauthen-sasl-perl libtemplate-perl-doc libfile-mimeinfo-perl libhtml-formattext-withlinks-perl libfile-which-perl libgd-dev libmysqlclient-dev lynx-cur graphviz python-sphinx rst2pdf

-------Download Bugzilla-------
cd /var/www/html
git clone --branch release-5.0.3 https://git.mozilla.org/bugzilla/bugzilla bugzilla

-------Configure MySQL-------
nano /etc/mysql/my.cnf

 max_allowed_packet=100M
 [mysqld]
 ft_min_word_len=2

mysql -u root -p -e "GRANT ALL PRIVILEGES ON bugs.* TO bugs@localhost IDENTIFIED BY 'bugs'"
service mysql restart

-------Configure Apache-------
nano /etc/apache2/sites-available/bugzilla.conf

ServerName localhost

<Directory /var/www/html/bugzilla>
  AddHandler cgi-script .cgi
  Options +ExecCGI
  DirectoryIndex index.cgi index.html
  AllowOverride All
</Directory>

service apache2 reload
a2ensite bugzilla
service apache2 restart
a2enmod cgi headers expires

-------Install Perl Module-------
/usr/bin/perl install-module.pl DateTime::TimeZone
/usr/bin/perl install-module.pl Email::Sender
/usr/bin/perl install-module.pl --all

-------Edit localconfig-------
nano localconfig

$webservergroup = www-data
$db_pass to set yuor MySQL user password.

-------Check Setup and Install Bugzilla-------
cd /var/www/html/bugzilla
./checksetup.pl

-------Test Server-------
./testserver.pl http://localhost/bugzilla

-------Access Via Web Browser-------
lynx http://localhost/bugzilla

Reference Link: Bugzilla Documentation

沒有留言:

張貼留言