Install Bugzilla in Linux

Source: Internet
Author: User

Bugzilla requires perl5.6.1 and later versions, and mysql4.0.14 and later versions (postgresql7.3.x and later versions) for installation)

1. Download Bugzilla
Download Bugzilla from http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.20.4.tar.gz.
(It is said that the number in the middle of the version number is an even number, which indicates the stable version, and an odd number indicates the test version)
2. Download the bugzilla Chinese package
Download the Chinese pack from the http://nchc.dl.sourceforge.net/sourceforge/bugzilla-cn/bugzilla-2.20-cn-1.0.zip.
3. Decompress Bugzilla
Tar zxvf bugzilla-2.20.4.tar.gz
CD bugzilla-2.20.4

4. Run checksetup to check whether the Perl module on which the bugzilla depends is fully installed.
./Checksetup. pl -- check-Modules

5. Install the missing Perl module. Installation Method:
A) if the Perl module required for Bugzilla installation is missing, a list of the missing Perl modules will be displayed after Step 1 is executed.
Use Perl-mcpan-e 'Install "<modulename>" 'to install all the missing Perl modules.
B) Use Perl-mcpan-e 'Install "Bundle: bugzilla" 'to automatically install all Perl modules on which Bugzilla depends,
Press enter when prompted.

6. Generate the localconfig file. Run:
./Checksetup. pl generate the localconfig file and modify the database username and password of the file.

// Create a database user and password for Bugzilla and grant permissions.
Grant select, insert,
Update, delete, index, alter, create, lock tables,
Create temporary tables, drop, references on bugs .*
To Bugs @ localhost identified by '$ db_pass ';
Flush privileges;

7. Generate the database schema required by Bugzilla. Run:
./Checksetup. pl generate the database schema required by Bugzilla.
After the database schema is generated, you are prompted to enter the Administrator email address, real user name, and password.

8. Configure Apache and modify the httpd. conf file (assuming that Bugzilla is installed in/var/www/html/Bugzilla). Add:
<Directory/var/www/html/Bugzilla>
Addhandler CGI-script. cgi
Options + indexes + execcgi
Directoryindex index. cgi
AllowOverride limit
</Directory>

9. Chinese support
Switch to the downloaded bugzilla-2.20-cn-1.0.zip directory.
Unzip-D Bugzilla-CN bugzilla-2.20-cn-1.0.zip
CD Bugzilla-CN
Unzip-D cn_utf8 cn_utf8.zip
MV cn_utf8 // var/www/html/Bugzilla/template/CN
Then, log on to the bugzilla using the administrator account. There is a parameters function at the bottom of the page,
Modify the value of ages to CN and save the settings. Then, the bugzilla page that you will see later is the Chinese page. If you want to return to the English interface, change CN back to en.

10. Modify the display of the bugzilla interface:
Unzip-D custom custom.zip
CP-fr custom/var/www/html/Bugzilla/skins/

Note:
1. allow large attachments: Add the following in/etc/My. CNF (MySQL configuration file:
[Mysqld]
# Allow packets up to 1 m
Max_allowed_packet = 1 m
2. allow full-text search of a few words, and add the following in the/etc/My. CNF file:
[Mysqld]
# Allow small words in full-text indexes
Ft_min_word_len = 2
By default, you must have at least 4 characters to search the full text.
3. The size of the attachments table in the bugzilla database can exceed 4 GB.
Mysql> use $ bugs_db // $ bugs_db is the database used by Bugzilla.
Mysql> alter table attachments
Avg_row_length = 1000000, max_rows = 20000;
The above command increases the size of the attachments table to 20 GB.
4. The interface for supporting and modifying Bugzilla in Chinese is displayed in the bugzilla-CN bugzilla-2.20-cn-1.0.zip package.
Make sure that versions are matched in Chinese.
5. For bugzill parameter settings and other related settings, refer to the official documentation:
Http://www.bugzilla.org/docs/

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.