Difference between revisions of "Bugzilla"

From ArchWiki
Jump to: navigation, search
(rm 'pacman -S foo')
m (fix category)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Web Server]]
+
[[Category:Issue tracking systems]]
[[Category:Development]]
+
[[ja:Bugzilla]]
 
{{Related articles start}}
 
{{Related articles start}}
 
{{Related|LAMP}}
 
{{Related|LAMP}}
Line 10: Line 10:
  
 
== Installation ==
 
== Installation ==
You can [[pacman|install]] {{Pkg|bugzilla}} from the [[official repositories]].
+
You can [[install]] {{Pkg|bugzilla}} from the [[official repositories]].
  
 
It requires a bunch of {{Pkg|perl}} modules to be installed too, but some required modules still need to be installed manually
 
It requires a bunch of {{Pkg|perl}} modules to be installed too, but some required modules still need to be installed manually
Line 16: Line 16:
 
==Configuration==
 
==Configuration==
  
 +
=== Module Dependencies ===
 
Make a module check first:
 
Make a module check first:
  $ cd /srv/http/bugzilla
+
  # cd /srv/http/bugzilla
  $ ./checksetup.pl --check-modules
+
  # ./checksetup.pl --check-modules
  
 
Check the screen output, you will learn which module is required and which is optional, for missing modules, it will also show you the shell command to install them.
 
Check the screen output, you will learn which module is required and which is optional, for missing modules, it will also show you the shell command to install them.
  
 
Install all required and optional modules using:
 
Install all required and optional modules using:
  $ perl install-module.pl -all
+
  # perl install-module.pl -all
  
 +
=== Missing Modules ===
 +
 +
{{Style|No bug report, if there is none file one}}
 +
 +
{{Warning|BugZilla ''may'' have missing dependencies that can effect normal usage and prevent the final configuration from completing successfully.}}
 +
 +
Because of a missing dependency, the following perl module needs to be installed for user creation and bug filing to work properly:
 +
# perl install-module.pl DateTime:TimeZone
 +
 +
Absence of '''Email-Abstract''' will generate an error on the final module check and configuration for BugZilla 5.0rc2 (in the next step). To fix this, issue the command:
 +
{{hc|BugZilla v5.0rc2|
 +
# perl install-module.pl Email::Abstract
 +
}}
 +
 +
There is an [https://bugzilla.mozilla.org/show_bug.cgi?id=1129046 open bug] for the above issue
 +
 +
=== Final Module Check ===
 
Next, some more configuration to let bugzilla know how to connect mysql and create initial tables in it.
 
Next, some more configuration to let bugzilla know how to connect mysql and create initial tables in it.
  
 
Run checksetup.pl again, this time without the –check-modules switch:
 
Run checksetup.pl again, this time without the –check-modules switch:
  $ ./checksetup.pl
+
  # ./checksetup.pl
  
 
A file called "localconfig" is generated if everything is ok. Then edit it, modify some parameters there:
 
A file called "localconfig" is generated if everything is ok. Then edit it, modify some parameters there:
Line 40: Line 58:
 
Finally, configure apache to run bugzilla using mod_cgi (also can be configured using mod_perl, refer this for details)
 
Finally, configure apache to run bugzilla using mod_cgi (also can be configured using mod_perl, refer this for details)
  
Add following lines to /etc/httpd/conf/httpd.conf:
+
First uncomment the following line in {{ic|/etc/httpd/conf/httpd.conf}}:
 +
 
 +
LoadModule cgi_module modules/mod_cgi.so
 +
 
 +
Then add the following lines to {{ic|/etc/httpd/conf/httpd.conf}}:
 +
 
 
  <Directory /srv/http/bugzilla>
 
  <Directory /srv/http/bugzilla>
 
   AddHandler cgi-script .cgi
 
   AddHandler cgi-script .cgi
   Options +Indexes +ExecCGI
+
   Options +ExecCGI
 
   DirectoryIndex index.cgi
 
   DirectoryIndex index.cgi
   AllowOverride Limit
+
   AllowOverride All
 
  </Directory>
 
  </Directory>
  
Now restart apache and required modules
+
Now restart apache and required modules.
  
 
Access http://server-domain-or-ip/bugzilla/ using your web browser.
 
Access http://server-domain-or-ip/bugzilla/ using your web browser.

Latest revision as of 06:59, 6 August 2017

Bugzilla is server software designed to help you manage software development.

Installation

You can install bugzilla from the official repositories.

It requires a bunch of perl modules to be installed too, but some required modules still need to be installed manually

Configuration

Module Dependencies

Make a module check first:

# cd /srv/http/bugzilla
# ./checksetup.pl --check-modules

Check the screen output, you will learn which module is required and which is optional, for missing modules, it will also show you the shell command to install them.

Install all required and optional modules using:

# perl install-module.pl -all

Missing Modules

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements.Tango-edit-clear.png

Reason: No bug report, if there is none file one (Discuss in Talk:Bugzilla#)
Warning: BugZilla may have missing dependencies that can effect normal usage and prevent the final configuration from completing successfully.

Because of a missing dependency, the following perl module needs to be installed for user creation and bug filing to work properly:

# perl install-module.pl DateTime:TimeZone

Absence of Email-Abstract will generate an error on the final module check and configuration for BugZilla 5.0rc2 (in the next step). To fix this, issue the command:

BugZilla v5.0rc2
 # perl install-module.pl Email::Abstract

There is an open bug for the above issue

Final Module Check

Next, some more configuration to let bugzilla know how to connect mysql and create initial tables in it.

Run checksetup.pl again, this time without the –check-modules switch:

# ./checksetup.pl

A file called "localconfig" is generated if everything is ok. Then edit it, modify some parameters there:

$webservergroup = 'http';
$db_driver = 'DATABASE_TO_USE_HERE';
$db_name = 'DATABASE_NAME_HERE';
$db_user = 'DATABASE_USER_HERE';
$db_pass = 'YOUR_PASSWORD_HERE';

Apache

Finally, configure apache to run bugzilla using mod_cgi (also can be configured using mod_perl, refer this for details)

First uncomment the following line in /etc/httpd/conf/httpd.conf:

LoadModule cgi_module modules/mod_cgi.so

Then add the following lines to /etc/httpd/conf/httpd.conf:

<Directory /srv/http/bugzilla>
  AddHandler cgi-script .cgi
  Options +ExecCGI
  DirectoryIndex index.cgi
  AllowOverride All
</Directory>

Now restart apache and required modules.

Access http://server-domain-or-ip/bugzilla/ using your web browser.

See also