Install and patch Bugzilla in Linux and add a Chinese package

Source: Internet
Author: User

Install and patch Bugzilla in Linux and add a Chinese package

Bugzilla version: bugzilla-4.4.5.tar.gz
 
1. Install bugzilla

1. install Apache.

2. Install mysql and start the service.

Manually create database buckets and user buckets

Mysql> create database bugs default character set utf8;

Mysql> grant all on bugs. * to bugs @ localhost identified by 'bugs123456 ';

Mysql> quit

3. Install bugzilla

# Tar zxf bugzilla-4.4.5.tar.gz
# Music bugzilla-4.4.5/var/www/html/bugzilla

Run #./checksetup. pl directly to check a series of dependency packages. In this case, the server must be able to access the Internet.

After the configuration is completed, the localconfig configuration file is generated to connect to the database.

# Vi localconfig

$ Db_driver = 'mysql ';

$ Db_host = 'localhost ';

$ Db_name = 'buckets ';

$ Db_user = 'buckets ';

$ Db_pass = 'bugs123456 ';

Other Default values: Save
If you execute #./checksetup. pl again, the table structure is automatically created, and an administrator and password are prompted (the administrator must be an email address ).
4. Execute./checksetup. pl and then prompt to modify the max_allowed_packet parameter in mysql, as shown below:

Warning you must set the max_allowed_packet Partition Number in your MySQL settings
3276750. It is set to 1048576 now.
You can find this parameter in the [mysqld] section of MySQL settings.

Modify/etc/my. cnf

[Mysqld]

Max_allowed_packet= 3276750

Save and restart the mysqld service

Go to mysql to modify

Mysql & gt; set global max_allowed_packet = 3276750;
Query OK, 0 rows affected (0.00 sec)

Mysql> show VARIABLES like '% max_allowed_packet % ';
+ -------------------- + --------- +
| Variable_name | Value |
+ -------------------- + --------- +
| Max_allowed_packet| 3275776 |
+ -------------------- + --------- +
1 row in set (0.00 sec)

Bugzilla Installation Complete

5. Configure the httpd. conf file to allow web Access

Solution 1: Modify the following default parameters

AddHandler cgi-script. cgi # Let apache execute cgi programs instead of reading files.

<Directory "/var/www/html">

Options ExecCGI Indexes FollowSymLinks # Add the ExecCGI statement to the beginning. If you do not add the statements to access apache, the following figure is displayed.

AllowOverride None

Order allow, deny
Allow from all

</Directory>

Second configuration scheme: directly Add the following Virtual Machine statement without changing any of the preceding parameters, which is suitable for environments where multiple virtual machines coexist.

<VirtualHost *: 800>
DocumentRoot/var/www/html/bugzilla
ServerName www.bugzilla.com
ErrorLog logs/bugzilla-error_log
CustomLog logs/bugzilla-access_log common
<Directory/var/www/html/bugzilla>
AddHandler cgi-script. cgi
Options ExecCGI Indexes FollowSymLinks
DirectoryIndex index. cgi index.html
AllowOverride None
</Directory>
</VirtualHost>

Save and restart apache to make it take effect.

Finally, the client browser access test is successful.
 
2. Configure Chinese Characters

Since the downloaded Chinese template is 4.4.6 and the bugzilla we installed is 4.4.5, We need to install a bugzilla patch first.

# Cd/var/www/html/bugzilla/

# Patches-p1 </usr/local/software/bugzilla-4.4.5-to-4.4.6.diff

Note: after entering the target directory for patching, use the patch parameter-p1, followed by the patch file (no matter where the patch file is, you can write the absolute path ).

Decompress and copy a Chinese package

# Gunzip bugzilla-tw-4.4.6.tar.gz

# Ls bugzilla-tw-4.4.6
README. md template

# Ls bugzilla-tw-4.4.6/template.ap-southeast-1.maxcompute.aliyun-inc.com/api/
En zh-TW

# Cp-rf bugzilla-tw-4.4.6/template/*/var/www/html/bugzilla/template/

After the patch is installed, run the checksetup. pl Command again after the Language Pack is added. Otherwise, the page cannot be displayed normally.

#./Checksetup. pl
* This is in Linux 2.6.18-308. el5 #1 SMP Fri Jan 27 17:17:51 EST 2012,
* Bugzilla 4.4.6 in the upper line of Perl 5.20.1.

Checking the perl mode...
Check CGI. pm (v3.51) for supervisor. OK: Find version v4.03.
Digest-SHA (any) OK: Find version v5.88
Query TimeDate (v2.23) by region. OK: Select v2.24.
Query DateTime (v0.28) by using 'struct'. OK: Find version v1.12.
DateTime query DateTime-TimeZone (v0.71) OK: Find version v1.81
DBI (v1.614) OK: Find version v1.632.
Check Template-Toolkit (v2.22). OK: Select v2.26.
Email-Send (v2.04) OK: Find v2.199
Email-MIME (v1.904) OK: Find version v1.928.
Check URI (v1.37). OK: Find version v1.65.
Run the "List-MoreUtils (v0.32)" command to view the version v0.401.
Check Math-Random-ISAAC (v1.0.1). OK: Find version v1.004.

At this time, the running fonts are changed to traditional Chinese. Everything is done.

Test, client browser access, such:

Iii. FAQs

After the Bugzilla Administrator logs on, the system immediately exits when setting parameters?

You must disable it here. Otherwise, the Administrator will immediately exit and log on again after clicking any configuration.

Release of all Bugzilla updates to fix important vulnerabilities

Install Bugzilla 4.2 On Fedora 16

Bugzilla Installation Process

Configure Bugzilla in Debian7 & Ubuntu 13.10

For details about Bugzilla, click here
For Bugzilla: click here

This article permanently updates the link address:

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.