Outils personnels
Vous êtes ici : Accueil GNU / Linux Debian Installer Bugzilla 3 sur Debian 4.0 Etch
Actions sur le document
  • Send this page to somebody
  • Print this page
  • Add Bookmarklet

Install Bugzilla 3 on Debian 4.0 Etch

Par Pierre-Yves Landuré - Dernière modification 01/03/2010 13:32

Bugzilla is the bug tracking system of the Mozilla foundation. It has many advantages and is quite present in the Free software community. This article explain how to install Bugzilla 3 from sources (and not by using a Debian package) on Debian 4.0 Etch.

Note : If you are looking for a usable bug tracking tool, i encourage you to try Redmine, that is much more simple to use than Bugzilla.

Install

First, we install the softwares needed by Bugzilla :

apt-get install apache2 libapache2-mod-perl2 libtemplate-perl libmime-perl \
libappconfig-perl libdbd-mysql-perl libtimedate-perl \
libgd-gd2-perl libgd-text-perl libxml-twig-perl perlmagick \
libemail-send-perl libemail-mime-modifier-perl libchart-perl \
libgd-graph-perl libhtml-scrubber-perl make

We choose the version of Bugzilla to install :

BZ_VERSION=3.0.2

We download the Bugzilla sources :

wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-$BZ_VERSION.tar.gz --output-document=/tmp/bugzilla-$BZ_VERSION.tar.gz

And we untar them :

tar --directory /var/www -xzf /tmp/bugzilla-$BZ_VERSION.tar.gz

We rename the created folder :

mv /var/www/bugzilla-$BZ_VERSION /var/www/bugzilla

And, in order to create a basic configuration file, we run the checksetup script :

cd /var/www/bugzilla
./checksetup.pl

This script show you the missing dependencies. If you want a LDAP or XML-RPC support, you can install the needed packages :

apt-get install libnet-ldap-perl
apt-get install libsoap-lite-perl

For the other missing dependencies, there is no Debian packages, and you need to install them using CPAN, but this is not mandatory.

Database

You can install a MySQL server and / or create a BUGZILLA database on an existing MySQL server by following this guide: MySQL for Debian 4.0 Etch.

Once this done, if you have followed the guide before, you can jump this step, otherwine, you need to setup the database connection parameters :

MYSQL_DB=BUGZILLA
MYSQL_USERNAME=bugzilla
MYSQL_USERPWD=my_password

And we configure Bugzilla to use the created database :

sed -i -e "s/^\$db_name = '.*';/\$db_name = '$MYSQL_DB';/" \
-e "s/^\$db_user = '.*';/\$db_user = '$MYSQL_USERNAME';/" \
-e "s/^\$db_pass = '.*';/\$db_pass = '$MYSQL_USERPWD';/" /var/www/bugzilla/localconfig

Setup

We will now fit Bugzilla to our needs. First, we setup the Apache server group :

sed -i -e "s/^\$webservergroup = '.*';/\$webservergroup = 'www-data';/" /var/www/bugzilla/localconfig

We launch a last time the Bugzilla configuration script that will create tables in the database, and add a administrator account :

cd /var/www/bugzilla
./checksetup.pl

We setup Apache 2 in order for Bugzilla to run properly :

sed -i -e '/<\/VirtualHost>/i\
<Directory "\/var\/www\/bugzilla">\
Options +ExecCGI\
AllowOverride Limit\
DirectoryIndex index.cgi\
AddHandler cgi-script .cgi\
<\/Directory>' /etc/apache2/sites-available/default

And we reload the new Apache 2 configuration :

/etc/init.d/apache2 reload

You can now access to your Bugzilla by using the URL :

http://localhost/bugzilla

Login with you administrator account, and click on the "Parameters" link at the bottom of the page to end your configuration.

Fitting to you needs

Now that you have a working Bugzilla install, you need to setup it so that it fit your needs. I suggest that you visit one by one the links at the bottom of the page (that are on the same line that "Parameters"). This software is very complete and need time to be configured, but this is only done once :D

You can if you want create a skin to enhance Bugzilla default user interface.

Thanks

Good job

Posté par Hans Liao le 22/05/2008 08:28
Excellent job, it cut my work hour in half.
Very well prepared guide.

The installation was painlessly smooth, thanks to you!

Not able to access http://localhost/bugzilla

Posté par Aravida le 07/07/2008 08:31
I followed these steps and could not access http://localhost/bugzilla.
When I run the command "sudo perl testserver.pl http://192.168.110.201/bugzilla" I am getting the following error message.
TEST-OK Webserver is running under group id in $webservergroup.
TEST-FAILED Fetch of skins/standard/index/front.png failed
Your webserver could not fetch http://192.168.110.201/bugzilla/skins/standard/index/front.png.
Check your webserver configuration and try again.

I run this command from the directory /var/www/bugzilla and the permissions of this directory is:
-rwxrwxrwx 1 root www-data 31221 2007-01-21 10:11 attachment.cgi
-rwxrwxrwx 1 root www-data 51546 2007-08-24 00:48 buglist.cgi
drwxrwxrwx 12 root www-data 4096 2007-09-18 21:03 Bugzilla
-rwxrwxrwx 1 root www-data 2835 2007-01-06 18:51 bugzilla.dtd
-rwxrwxrwx 1 root www-data 20741 2007-07-30 21:11 Bugzilla.pm
-rwxrwxrwx 1 root www-data 10302 2007-07-22 18:25 chart.cgi
-rwxrwxrwx 1 root www-data 15860 2006-12-09 06:51 checksetup.pl
-rwxrwxrwx 1 root www-data 4883 2006-09-04 12:21 colchange.cgi
-rwxrwxrwx 1 root www-data 20832 2007-08-20 14:06 collectstats.pl
-rwxrwxrwx 1 root www-data 3807 2006-10-17 00:41 config.cgi
drwxrwxrwx 6 root www-data 4096 2007-09-18 21:03 contrib
-rwxrwxrwx 1 root www-data 2532 2006-09-05 15:18 createaccount.cgi
drwxrwxrwx 2 root www-data 4096 2007-09-18 21:03 CVS
-rwxrwxrwx 1 root www-data 3118 2006-12-27 02:37 describecomponents.cgi
-rwxrwxrwx 1 root www-data 1344 2006-09-04 12:21 describekeywords.cgi
drwxrwxrwx 9 root www-data 4096 2007-09-18 21:03 docs
-rwxrwxrwx 1 root www-data 9637 2007-05-10 07:36 duplicates.cgi
-rwxrwxrwx 1 root www-data 6684 2004-10-21 15:02 duplicates.xul
-rwxrwxrwx 1 root www-data 8804 2006-10-14 18:02 editclassifications.cgi
-rwxrwxrwx 1 root www-data 14654 2007-07-22 18:25 editcomponents.cgi
-rwxrwxrwx 1 root www-data 4050 2006-11-12 21:50 editfields.cgi
-rwxrwxrwx 1 root www-data 26538 2007-01-04 12:48 editflagtypes.cgi
-rwxrwxrwx 1 root www-data 25919 2006-10-20 17:16 editgroups.cgi
-rwxrwxrwx 1 root www-data 4748 2006-10-14 18:02 editkeywords.cgi
-rwxrwxrwx 1 root www-data 10405 2006-12-19 05:35 editmilestones.cgi
-rwxrwxrwx 1 root www-data 5774 2007-08-20 17:09 editparams.cgi
-rwxrwxrwx 1 root www-data 40917 2007-07-22 18:25 editproducts.cgi
-rwxrwxrwx 1 root www-data 2998 2006-10-14 18:02 editsettings.cgi
-rwxrwxrwx 1 root www-data 32867 2006-11-10 11:51 editusers.cgi
-rwxrwxrwx 1 root www-data 13589 2006-10-14 18:02 editvalues.cgi
-rwxrwxrwx 1 root www-data 5892 2006-11-10 11:51 editversions.cgi
-rwxrwxrwx 1 root www-data 19197 2006-10-14 18:02 editwhines.cgi
-rwxrwxrwx 1 root www-data 15053 2007-09-14 15:30 email_in.pl
-rwxrwxrwx 1 root www-data 22869 2007-01-13 20:42 enter_bug.cgi
drwxrwxrwx 3 root www-data 4096 2007-09-18 21:03 images
-rwxrwxrwx 1 root www-data 48452 2007-04-03 19:55 importxml.pl
-rwxrwxrwx 1 root www-data 2571 2006-08-21 17:27 index.cgi
drwxrwxrwx 3 root www-data 4096 2007-09-18 21:03 js
-rwxrwxrwx 1 root www-data 4393 2008-07-07 03:01 localconfig
-rwxrwxrwx 1 root www-data 1271 2005-10-25 15:31 long_list.cgi
-rwxrwxrwx 1 root www-data 3362 2007-02-24 21:43 mod_perl.pl
-rwxrwxrwx 1 root www-data 2019 2006-06-20 20:44 page.cgi
-rwxrwxrwx 1 root www-data 8648 2007-03-06 06:43 post_bug.cgi
-rwxrwxrwx 1 root www-data 89140 2007-08-09 08:56 process_bug.cgi
-rwxrwxrwx 1 root www-data 9237 2005-08-21 16:05 productmenu.js
-rwxrwxrwx 1 root www-data 13092 2006-12-29 18:41 query.cgi
-rwxrwxrwx 1 root www-data 3607 2007-07-29 14:14 QUICKSTART
-rwxrwxrwx 1 root www-data 4542 2006-09-04 12:21 quips.cgi
-rwxrwxrwx 1 root www-data 892 2003-10-09 22:22 README
-rwxrwxrwx 1 root www-data 7536 2006-10-14 18:02 relogin.cgi
-rwxrwxrwx 1 root www-data 12964 2006-06-20 20:44 report.cgi
-rwxrwxrwx 1 root www-data 8832 2006-08-03 13:54 reports.cgi
-rwxrwxrwx 1 root www-data 13220 2006-10-14 17:04 request.cgi
-rwxrwxrwx 1 root www-data 44 2002-04-24 14:11 robots.txt
-rwxrwxrwx 1 root www-data 1135 2004-09-03 02:59 runtests.pl
-rwxrwxrwx 1 root www-data 36718 2007-07-22 18:25 sanitycheck.cgi
-rwxrwxrwx 1 root www-data 986 2006-09-28 18:19 search_plugin.cgi
-rwxrwxrwx 1 root www-data 2005 2006-06-20 20:44 show_activity.cgi
-rwxrwxrwx 1 root www-data 1209 2006-03-01 17:46 showattachment.cgi
-rwxrwxrwx 1 root www-data 4313 2006-12-26 20:21 show_bug.cgi
-rwxrwxrwx 1 root www-data 9840 2007-07-26 02:56 showdependencygraph.cgi
-rwxrwxrwx 1 root www-data 5389 2006-10-20 16:50 showdependencytree.cgi
-rwxrwxrwx 1 root www-data 1795 2006-06-20 20:44 sidebar.cgi
drwxrwxrwx 4 root www-data 4096 2007-09-18 21:03 skins
-rwxrwxrwx 1 root www-data 17544 2006-09-04 12:21 summarize_time.cgi
drwxrwxrwx 4 root www-data 4096 2007-09-18 21:03 t
drwxrwxrwx 4 root www-data 4096 2007-09-18 21:03 template
-rwxrwxrwx 1 root www-data 876 2007-02-10 19:12 testagent.cgi
-rwxrwxrwx 1 root www-data 8800 2007-02-10 19:12 testserver.pl
-rwxrwxrwx 1 root www-data 14378 2006-10-20 14:52 token.cgi
-rwxrwxrwx 1 root www-data 188 2001-08-10 18:35 UPGRADING
-rwxrwxrwx 1 root www-data 18416 2003-03-26 19:06 UPGRADING-pre-2.8
-rwxrwxrwx 1 root www-data 20533 2007-07-21 07:00 userprefs.cgi
-rwxrwxrwx 1 root www-data 13220 2007-06-10 06:20 votes.cgi
-rwxrwxrwx 1 root www-data 2904 2007-07-03 18:59 whineatnews.pl
-rwxrwxrwx 1 root www-data 24530 2006-10-21 20:46 whine.pl
-rwxrwxrwx 1 root www-data 1295 2005-08-09 21:30 xml.cgi
-rwxrwxrwx 1 root www-data 1424 2007-02-04 11:23 xmlrpc.cgi

Please suggest me where I am wrong.

Thanks,
Aravinda

Apache2

Posté par lwolf le 07/07/2008 08:52
Hi,

well, the only thing that seems to be missing is a correct apache config.

If you are using the default debian one, check that these lines are in /etc/apache2/sites-available/default:

<Directory "/var/www/bugzilla">\
Options +ExecCGI
AllowOverride Limit
DirectoryIndex index.cgi
AddHandler cgi-script .cgi
</Directory>

If they are not, add them.

If you are not using the default debian apache2 configuration, then it's up to you to configure Apache properly.

Not able to access http://localhost/bugzilla

Posté par Aravinda le 07/07/2008 10:16
My /etc/apache2/sites-available/default has these lines.
<Directory "/var/www/bugzilla">
Options +ExecCGI
AllowOverride Limit
DirectoryIndex index.cgi
AddHandler cgi-script .cgi
</Directory>

The apache2 version is
Server version: Apache/2.2.4 (Ubuntu)

I tried the configuration using /etc/apach2/http.conf and the result was same. Do I miss anything here?

Thanks,
Aravinda

well

Posté par lwolf le 07/07/2008 10:21
i can see why it is not working.

Maybe:

a2enmod default

/etc/init.d/apache2 restart

Not able to access http://localhost/bugzilla

Posté par Aravinda le 07/07/2008 11:35
No I executed /etc/init.d/apache2 restart

And then the following command

sudo perl testserver.pl http://192.168.110.201/bugzilla
Whose results is

TEST-OK Webserver is running under group id in $webservergroup.
TEST-FAILED Fetch of skins/standard/index/front.png failed
Your webserver could not fetch http://192.168.110.201/bugzilla/skins/standard/index/front.png.
Check your webserver configuration and try again.

well

Posté par lwolf le 07/07/2008 11:42
sorry, but i can't help you. It is a apache 2 config issue, but since each apache 2 config is quite unique, you are on your own on this one.

This guide work quite well with the "default" unmodified debian apache 2 configuration.

Good luck.

Not able to access http://localhost/bugzilla

Posté par Aravinda le 08/07/2008 04:39
I think problem was with MySQL data base connectivity. I could able solve it.
Thanks for the help. Bugzilla is now up and functioning.

Aravinda

thanks for the details on how you solved it

Posté par acartine le 07/10/2008 14:37
Thanks for selfishly demanding help from the community and then not sharing the solution for your problem. It was a pleasure not being able to learn from your experience.

re:Not able to access http://localhost/bugzilla

Posté par CanDee le 08/11/2008 20:30
try to put your vhost configs in /etc/apache2/sites-enabled/

cannot access http://localhost/bugzilla

Posté par cecilia chow le 15/12/2008 22:22
Please help me, too.
when access to http://localhost/bugzilla
I got 'page not found' error.

I used %yun install bugzilla to install bugzilla---successfully
and I ran /usr/share/bugzilla/checksetup.pl --- successfully
and checked /etc/bugzilla/localconfig file-----ok

apache 2 config

Posté par lwolf le 16/12/2008 04:47
Check that the default apache 2 site is enabled, and that /var/www/bugzilla config is present in it. Bugzilla is quite complex to install and you need some knowledge of Apache configuration to solve this kind of problems.

online gambling adbfu

Posté par Online Casino 1epst le 29/06/2018 13:38
gambling sites <a href="https://online-casinoss.us.org/">bovada casino</a> online casino slots | [url=https://online-casinoss.us.org/]online casinos for us players[/url]

azqaxkjk

Posté par Personal Loans JW le 30/06/2018 07:45
loan online <a href="http://buyused.cars">loan online</a> online loans [url=http://buyused.cars]installment loan lenders[/url]

trzcjjqx

Posté par Get A Loan JW le 01/07/2018 15:14
online instant loans same day <a href="http://buyused.cars">loan online</a> loans online no credit check [url=http://buyused.cars]online loan application[/url]

chegkrpf

Posté par Loans For Bad Credit JW le 02/07/2018 20:55
online loan <a href="http://buyused.cars">faxless payday loans</a> payday loans online reviews [url=http://buyused.cars]cash loans online[/url]

free online poker free slots vegas world

Posté par AbakbakiVapYJ le 04/07/2018 02:07
free vegas slots - [url=https://slots777usa.com/]free slots vegas[/url]
casino free slots <a href=" https://slots777usa.com/ ">free slots vegas world</a>
https://slots777usa.com/

rhznzbgh

Posté par Easy Payday Loan JW le 05/07/2018 14:01
payday loan online <a href="http://buyused.cars">payday loan with no credit check</a> loan online [url=http://buyused.cars]payday loan online[/url]

ptpwspzc

Posté par Instant Online Loans JW le 29/06/2018 21:38
online loan application <a href="http://buyused.cars">loan online</a> loans online no credit check [url=http://buyused.cars]payday loans same day payout[/url]

zfzeuynd

Posté par Spotloan JW le 01/07/2018 03:36
loan online <a href="http://buyused.cars">loan online</a> loan online [url=http://buyused.cars]guaranteed bad credit loans[/url]

ioukdzzf

Posté par Best Online Loans JW le 02/07/2018 09:51
get money today <a href="http://buyused.cars">loan online</a> faxless payday loan [url=http://buyused.cars]loan online[/url]

owkdkeyf

Posté par Loans Online JW le 03/07/2018 20:29
loan online <a href="http://buyused.cars">loan online</a> online loan [url=http://buyused.cars]loan online[/url]

tswmrxhw

Posté par Pay Day Loan JW le 05/07/2018 02:54
payday loan online <a href="http://buyused.cars">loan online</a> loan online [url=http://buyused.cars]loan online[/url]

axgmgpce

Posté par Instant Online Loans le 14/10/2018 10:34
poor credit loans guaranteed approval <a href="https://creditloansguaranteedapproval.com/">no credit loans</a> credit loans [url=https://creditloansguaranteedapproval.com/]bad credit loans direct lenders[/url]

ukurylgn

Posté par Payday Loan Online le 18/10/2018 08:48
cash express <a href="https://creditloansguaranteedapproval.com/">payday loans work</a> bad credit loans guaranteed approval [url=https://creditloansguaranteedapproval.com/]bad credit loans direct lenders[/url]

lscroqln

Posté par Direct Lender Loans le 19/10/2018 14:46
poor credit loans guaranteed approval <a href="https://creditloansguaranteedapproval.com/">credit loans guaranteed approval</a> credit loans guaranteed approval [url=https://creditloansguaranteedapproval.com/]poor credit loans guaranteed approval[/url]

make

Posté par Manfred le 01/03/2010 12:56
on a completely fresh install make was missing > add it to the first apt line

responde...not found

Posté par yehudit le 27/10/2011 14:43
hi,
i need help
when i download the Bugzilla sources the answerd was like this:"--2011-10-27 16:22:46-- http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-3.0.2.tar.gz
Resolving ftp.mozilla.org... 63.245.209.137
Connecting to ftp.mozilla.org|63.245.209.137|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-10-27 16:22:47 ERROR 404: Not Found."

what it's meen?

BlogBang
Navigation
 

Réalisé avec Plone

Ce site respecte les normes suivantes :

Wikio