Install and configure bugzilla2.22 quickly on freebsd6.1

Source: Internet
Author: User
Tags bug tracking system mysql command line
Install and configure bugzilla2.22 by Michael on freebsd6.1

Friends who have developed large projects must have been familiar with such tools: demand management,CodeAnd version control and bug tracking tools. ClearQuest is a common requirement management tool. vss and CVs are the most commonly used in code and version control tools, while Bugzilla is the most famous bug tracking tool.

Bugzilla is a free and excellent bug tracking tool provided by the Mozilla team. It is completely web-based and easy to install and run. It can be stored using MySQL database or LDAP, the system is flexible and has powerful configuration capabilities. It can automatically send email notifications and reminders to produce flexible and convenient reports and images. It also supports standard XML import and export.

As a product defect record and tracking tool, it can establish a complete BUG Tracking System for you. At the same time, because there are many processes and features similar between demand management and bug tracking, bugzilla can also be used for entry-level requirement management. A requirement is like a bug. The whole process from proposal to receipt, processing, feedback, and verification can be reflected and handled in Bugzilla, in addition, it can correspond to products and related personnel like bugs. when Michael was working at Yahoo, the company used Bugzilla as a platform for demand and Bug Management, which is very convenient and practical.

More Bugzilla features are not mentioned here. Michael will focus on how to quickly install and configure Bugzilla in the freebsd6.1 environment to provide demand and Bug management support for your project.

Michael mentioned the prerequisites for installing freebsd6.1 and configuring ports on your system, the installation and configuration of Apache, Perl, and MySQL are completed through ports. We will not talk about the installation and configuration of freebsd6.1, ports, and Apache, Perl, and MySQL, there are quite a few related materials.

The following describes how to install Michael's bugzilla.

# Cd/usr/ports/devel/Bugzilla
# More./distinfo (Check the version information to see content similar to the following)

MD5 (bugzilla-2.22.tar.gz) = bbf2f1ec5607978d39855df417231973
Sha256 (bugzilla-2.22.tar.gz) = 9d7e2144cd8499430c802ef5267dd2237aaec401546e5b9476db4f9425ebd4d
Size (bugzilla-2.22.tar.gz) = 1956898
Indicates that the current version of the bugzilla in ports is version 2.22, which is basically the latest version of the stable version officially released.

# Make config (set Initialization Configuration options. below is my choice)
[X] MySQL Database Support
[] Pgsql PostgreSQL database support
[X] charting_modules bug charting support
[] Graphviz use graphviz
[X] email_gateway use email gateway
[X] export_import import/export bugs (via XML)
[] Contrib install user-contributed scripts
[] LDAP enable LDAP support
Select MySQL database, graphical report, mail, XML import and export support

# Make install clean

After completing the basic installation, you need to make some settings for final use.

Set MySQL

We need to set up to use the MySQL database to store Bugzilla data. You can set it through a command line or a Web management tool such as phpMyAdmin. Next we will use the MySQL command line to complete the settings.

# Mysql-hlocalhost-uroot-P
Enter Password: xxxxxx
Mysql> create database <dbname>;
Mysql> grant select, insert,
Update, delete, index, alter, create, lock tables,
Create temporary tables, drop, references on <dbname> .*
To <dbuser> @ localhost identified by '<dbpass> ';
Mysql> flush privileges;
Mysql> exit;

The above completes the creation of a database for Bugzilla on the local MySQL. (Here Change to the name of the database you want to use) and add users And Password , The user pair All permissions are granted.
Here, Michael uses Is Bugzilla, And Both are Bugzilla
In addition, to enable MySQL to support large attachment storage of Bugzilla, you also need to modify the default settings of MySQL. By default, Bugzilla supports up to 1 MB of attachments. The modification method is as follows:

# Vi/etc/My. CNF
Add the following line to the [mysqld] section.
Max_allowed_packet = 1 m

Restart MySQL.

Set Apache

If your system is freebsd6.1 and ports is updated to the latest version, Apache installed through ports should be apache2.2.3, its serverroot directory should be in/usr/local/www/apache22, however, after Bugzilla is installed through ports, the bugzilla web directory will be installed under/usr/local/www/data/Bugzilla. Here you can adjust it according to your preferences, you can move the bugzilla directory to/usr/local/www/apache22/data/Bugzilla, or modify httpd of Apache again. CONF file, change serverroot to/usr/local/WWW, and update httpd. other settings related to/usr/local/www/apache22 in Conf. I used the following method, because many other Apache-Related Web applications installed through ports will be under/usr/local/WWW by default, for example, Cvsweb uses the/usr/local/www/cgi-bin directory by default. To facilitate the installation of other applications in the future, I chose to modify the Apache configuration, which is easy to modify. The general settings are as follows:

# Cp-r/usr/local/www/apache22/*/usr/local/www/
# Vi/usr/local/etc/apache22/httpd. conf
Modify/usr/local/www/apache22 in the file to/usr/local/www. There are about three or four parts.

Add the following content to the httpd. conf file:
<Directory/usr/local/www/data/Bugzilla>
Addhandler CGI-script. cgi
Options + indexes + execcgi
Directoryindex index. cgi
AllowOverride limit
</Directory>
This section sets the bugzilla directory to execute cgi files, because Bugzilla is compiled using Perl.

This completes the Apache configuration and restarts the apache service.

Bugzilla final settings

The configuration of MySQL and Apache is basically completed by 99%. The last step is the configuration of Bugzilla. The configuration process is also very simple. The steps are as follows:

# Cd/usr/local/www/data/Bugzilla
#./Checksetup. pl
This is the first time you run this script. The configuration file localconfig will be automatically created for you.
# Vi./localconfig
Change the database name, user name, and password to the value you set during the previous creation. Save and exit.
#./Checksetup. pl
This command will enable Bugzilla to create and set various tables in the database. It also requires you to enter the email address and password of the bugzilla administrator and follow the prompts. The process is very simple.

At this point, all the installation of Bugzilla has been completed. Enter http: // yourserverip/Bugzilla/index. cgi in the browser to see the cute bug? Of course, you can also configure Apache virtualhost to access your Bugzilla with an independent domain name, such as my configured Bugzilla can access the http://bugzilla.toplee.com through the following domain name, you can test it!

Currently, Bugzilla supports only version 2.20 in Chinese. We have not installed version 2.22 in Chinese, so we cannot enjoy the Chinese interface for the moment. Please wait, specific can pay attention to the latest developments in http://www.bugzilla.org!

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.