Build the bugzilla System in ubuntu and use ubuntubugzilla.

Source: Internet
Author: User
Tags bug tracking system install perl

Build the bugzilla System in ubuntu and use ubuntubugzilla.

I installed the bugzilla system deployment on ubuntu, which is also confusing, what we can do now is to learn from various Tutorial Courses on the Internet and add our own summary and difficulties encountered in actual operations to record them and write them into a blog.

BugzillaIntroduction
Bugzilla is a shared free product defect record and Tracking tool (Bug-Tracking System ). Provided by Mozilla. The Founder is Terry Weissman. It was first created in a language named "TCL" and then implemented in Perl and released as Open source. It manages the entire lifecycle of defects, such as submitting (new), repairing (resolve), and closing (close) in software development.
Bugzilla features
Bugzilla can establish a complete bug Tracking System for you, including reporting bugs, querying bug records and generating reports, solving bugs, and initializing and setting the administrator system. Bugzilla has the following features:
1. Web-based, easy to install, easy to run, and secure management.
2. It is conducive to clearly communicating defects. The system uses databases for management, provides comprehensive and detailed report input items, and generates standardized bug reports. Provides a large number of analysis options and powerful query matching capabilities, and supports bug statistics based on combinations of various conditions. When a defect changes during its lifecycle, developers, testers, and management personnel will obtain dynamic change information in a timely manner, allowing you to obtain historical records, refer to this record when checking the defect status.
3. The system is flexible and powerful in configuration. The Bugzilla tool can set different modules for software products and set developers and testers for different modules. In this way, you can automatically send the report to the specified owner, set different groups, and divide permissions. You can set different permissions for different users to manage the bug records. Different levels of severity and priority can be set. Defects can be managed during the lifecycle of a defect. From initial reporting to final resolution, the defects are not ignored. At the same time, you can focus on Defects with high priority and severity.
4. send an Email automatically to notify relevant personnel. The latest dynamic information is automatically sent based on the specified owners to help testers communicate with developers effectively.

 

If you want to know more about the bugzilla system, you can go to the official website to View Details. After all, I think the official website is more authoritative. Official Website:

Http://www.bugzilla.org/

 

We can see from the official deployment of the system requirements and methods: http://www.bugzilla.org/requirements/

RequirementsOperating System

To install and run Bugzilla on your server, the core requirement is to have Perl installed. this means that Bugzilla can be installed on any platform where Perl can be installed, including Windows, Linux, and Mac OS X. linux is highly recommended and is our 1st-class citizen operating system.

Hardware

The hardware requirements depend heavily on the size of the user base and on the number of bugs in your database. for small teams (up to a few tens of users) with few bugs (up to a few thousands bugs), any good machine will do the job pretty well. the important part is to have enough RAM (4 GB or more recommended) and a fast processor (for instance, 3 GHz ). such hardware is pretty common nowadays. A harddisk with 50 GB of free space is large enough.

Larger teams with several thousands of users and several hundreds of thousands bugs need more hardware. to give you an idea, the Bugzilla installation at Mozilla uses 8 servers: 3 webheads (12 GB of RAM each), 1 master database (35 GB of RAM ), 3 slave databases (35 GB of RAM each), and 1 email relay. moreover, mod_perl is enabled for improved performance. note that it is designed for very high concurrent access, which is quite unusual, so your requirements are probably lower than that.

Software

Bugzilla needs a database server, a web server, and Perl. In all recommendations below, "Bugzilla requires version X" must be understood as "Bugzilla requires version XOr newer". In all cases, the newer, the better, as newer releases have more bug fixes, are still supported and still get security fixes. if you install the mimimum version mentioned below, the risk is that this version will reach End Of Life pretty soon and so can be unsupported at any time.

Perl:
Bugzilla 4.4 and older require Perl 5.8.1 ( Or newer, See the previous paragraph), but Bugzilla 5.0 and newer will require Perl 5.10.1, and so we don't recommend Perl 5.8.x at this stage. instead, you shoshould install Perl 5.12 (thoughthis version already reached End Of Life) or newer, as these newer versions have some useful improvements which will make your life easier.
Database Server:
Bugzilla supports MySQL, PostgreSQL, Oracle and SQLite. we highly recommend MySQL and PostgreSQL, which have the best support from Bugzilla and are used daily by Bugzilla developers. oracle hasseveral known issues and is a 2nd-class citizen. it shoshould work decently in most cases, but may fail miserably in some cases too. SQLite is recommended for testing purposes only or for small teams.
If you install MySQL, version 5.0.15 is required by Bugzilla 4.x, but we highly recommend version 5.5 or newer. If you install PostgreSQL, version 8.3 is required.
Web Server:
Bugzilla has no minimum requirements for its web server. we recommend to install Apache 2.2, though Bugzilla works fine with IIS too (IIS 7 or higher recommended ). if you install Apache and you want improved performances, you can enable its mod_perl module.

 

Installation and deployment started:

I:

1. To install perl, you must first know what perl is and what it uses.

Perl, formerly a Unix system management tool, is used in countless small tasks. Later, it gradually developed into a powerful programming language, which is used for Web programming, database processing, XML processing, and system management. At the same time, it can still process small daily work, this is its original design intention. Perl is especially suitable for system management and Web programming. It has actually been bundled and released as standard components for all Unix (including Linux) systems, as well as Microsoft Windows and almost all other operating systems. Perl is called the Practical Extraction and Report Language ). Perl is a programming language designed by Larry Wall and constantly updated and maintained by him. In short, Perl is as powerful as C and as convenient as script descriptive languages such as awk and sed.

2. Perl is generally a built-in systemIf no or the version does not meet the requirements, install it on your own, or apt-get install perl
Use Perl-v to view perl version information

Perl official site: http://www.perl.org/

 

3. Enter the command: perl-v on the command terminal to view the installed perl version:


My perl version is 5.14.2 and the installation version requirement is 5.8.1. Obviously, my perl version is enough, but I still

Run the command apt-get install perl to update the file.

 

Ii. Install Mysql

 

Enter the mysql-v command on the terminal, as shown in:

 

Follow the prompts to continue entering the command: sudo apt-get install mysql-client-core-5.5

 

Installation command: sudo apt-get install mysql-server (after installation is complete, you will be asked to enter the root administrator account password, remember this password, this root is not the root of the user group, but the root account of the mysql database)

 

Iii. Web Server (apache2)

Installation command: sudo apt-get install apache2

 

Iv. Mail Transfer Agent

 

Installation command: sudo apt-get install sendmail

 

V,Download bugzilla and install the Perl Module

Download link: http://www.bugzilla.org/

Decompress the file to the/var/www/directory.

Sudo tar-C/var/www/-xvf bugzilla-3.6.3.tar.gz

After decompression, there will be a directory named bugzilla-3.6.3, rename it bugzilla and switch to the/var/www/bugzilla/directory

Sudo mv bugzilla-3.6.3 bugzilla & cd/var/www/bugzilla/

There is a checksetup. pl file under the bugzilla directory, run this file

Sudo perl checksetup. pl

After running, it will tell you that the current bugzilla still requires installation of those perl modules, and there is a prompt to install the command. Here we only need to install some of the necessary packages. Optional packages do not need to be installed. The command to install these required packages is generally:

/Usr/bin/perl install-module.pl -- all

This command basically runs a series of perl modules required for bugzilla installation. The preparations for bugzilla installation are almost done.
Of course, there are some situations where the installation is not possible. In this case, you need to install it yourself. During installation, YAML and DateTime cannot be installed successfully. Run the following command to install or download the required module installation on cpan.

Sudo/usr/bin/perl install-module.pl YAML

Sudo/usr/bin/perl install-module.pl DateTime

This command basically runs a series of perl modules required for bugzilla installation. The preparations for bugzilla installation are almost done.

In fact, at this time, the bugzilla can be regarded as more than half installed, and the rest is some configuration problems.


Vi. Configuration

1. mysql configuration.

Bugzilla needs to use the mysql database to manage the bugs. The default database name is bugs, the default Database Administrator account is bugs, and the default administrator password is blank. These are all written in the configuration file localconfig. Therefore, we need to add a mysql DATA administrator user for the bugs and create a database named bugs to save the bugs submitted by bugzilla.

Enter at the terminal:

Mysql-u root-p (use the root administrator of mysql to log on to mysql to add the user bugs). Then, the hacker will prompt you to enter the password, that is, the last root password entered during mysql installation.

After entering the mysql Interface

Grant all on *. * to bugs @ localhost identified by ''; flush privileges; (do not forget the last ';'). In this way, we have created the mysql user bugs for bugzilla.

Finally, create a bugs database file. On the mysql page, enter:

Create database bugs;

2. apache2 server configuration

Open the configuration file httpd. conf of apache2.

Add the following content to sudo vi/etc/apache2/httpd. conf:

<Directory "/var/www/bugzilla/">

AddHandler cgi-script. cgi

Options + Indexes + ExecCGI + FollowSymLinks

DirectoryIndex index. cgi

AllowOverride None

Order allow, deny

Allow from all

</Directory>

3. Configure bugzilla

Modify a sentence in the/bugzilla/localconfig file: $ webservergroup = 'www-data ';

Here, why do we enter www-data? This is determined by the environment variable of apache2 we have installed. This variable exists in the file/etc/apache2/envvars. The file content is as follows:

# Settings are defined via environment variables and then used in apache2ctl,
#/Etc/init. d/apache2,/etc/logrotate. d/apache2, etc.
Export APACHE_RUN_USER = www-data
Export APACHE_RUN_GROUP = www-data

This is why we need to fill in www-data. In addition, we need to modify the owner and groups of the bugzilla directory. Because apache2 environment variables are determined to be executed using the www-data user group. Run sudo chgrp-R root. www-data bugzilla.


Finally, run the following command on the terminal: sudo perl checksetup. pl. After running bugzilla, it will be installed smoothly. At the end of the installation, you will be asked to enter the Administrator account and password of the bugzilla system. This must be noted.

7. Start bugzilla

Restart the apache2 server and mysqlserver

Sudo/etc/init. d/apache2 restart

Sudo/etc/init. d/mysql restart

The bugzilla environment is basically set up, and you can use it when you open firefox.

Enter http: // localhost/bugzilla in the address column to view the bugzilla homepage, as shown below:



Most of the following content is reference blog: http://blog.csdn.net/ocean181/article/details/7184961

 

 

 

 

 

 

 


Tutorial: Access to all modules (bugzilla, perl, mysql, and apache) required for bugzilla installation and configuration in ubuntu still fails.

Run
#./Checksetup. pl -- check-modules

Checksetup. pl prints out a list listing the Perl modules to be installed on your computer, along with the version number.

Use the following command to install modules that are not installed.

# Perl-MCPAN-e 'Install "<modulename> "'
 
How to Use the bugzilla software in ubuntu under a virtual machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.