Install Bugzilla on Windows

Source: Internet
Author: User
Tags glob install perl
I found some ways to install Bugzilla on Windows. Article It is not too troublesome, but the details are not clear. It took a few days to finally install Bugzilla on Windows 2003 and write down the installation process in detail, so that you don't have to take a detour. This article is only for Bugzilla 2.18rc3. I have not tried other versions. In addition, I do not understand Perl scripts.


1. Install MySQL

1, download MySQL (http://www.mysql.com/downloads, I download mysql-4.0.15-win.zip, directly install it. You can also download and install MySQL Administrator 1.0, which is a MySQL management software and is quite useful.

2. Modify the MySQL Root User Password

E: \> Cd MySQL

E: \ mysql> Cd Bin

E: \ mysql \ bin> mysql-u root MySQL

Mysql> Update user SET Password = PASSWORD ('<new_password'>) where user = 'root ';

Mysql> flush privileges;

<New_password> is the new password of the root user. After changing the password, use the root user to access mysql. You must use MySQL-u root-P and press the prompt to enter the correct root password.

3. Create a Bugs user and grant corresponding permissions.

Mysql> grant select, insert, update, delete, index, alter, create, drop, references, lock tables, create temporary tables on bugs. * To Bugs @ localhost identified by '<bugs_password> ';

Mysql> flush privileges;

Remember the password of the bugs user, which must be used in the following Bugzilla configuration file.

4. Create a Bugs Database

Mysql> Create Database bugs;

2. Download Bugzilla (www.bugzilla.org)

Now the latest version is bugzilla-2.18rc3, download it and unzip it to E: \ Bugzilla

3. Install Perl (refer to the bugzilla documentation for this section)

1. Download ActivePerl (http://www.activestate.com/), I downloaded the ActivePerl-5.8.4.810-MSWin32-x86.msi, installed to E: \ Perl (installation path can be customized, the same as below)

Run the following command in the E: \ Bugzilla directory:

E: \ Bugzilla> Perl checksetup. pl

This script checks whether the required module has been installed, initializes the database, and finally requires the Administrator's email address, user name, and password. If the database cannot be connected for the first time, find the E: \ Bugzilla \ localconfig file and open $ db_pass =, enter the password assigned to the bugs user in the previous step in quotation marks and save the password.

Take a closer look at the returned prompt to see which modules have not been installed. Then, install the required modules and run

C: \> ppm repository add oi http://openinteract.sourceforge.net/ppmpackages

Run the following command to install the SDK:

C: \> ppm install <Module name>

If you want to install the optional modules:

Run the following command to add the download module address:

C: \> ppm rep add glob http://glob.com.au/ppm

Run the following command to install the SDK:

C: \> ppm install <Module name>

After each module is successfully installed, information similar to the following line is displayed:

Successfully installed appconfig version 1.52 in ActivePerl 5.8.4.810.

4. Configure IIS

1. Open Control Panel> Administrative Tools> Internet Information Services, right-click the default web site and choose Properties> Home dicdic> configuration. In app mappings, you can see that the extension is. PL and. the PLX file has been added here. Double-click. the PL line opens its properties dialog box, and selects "all actions" in "actions. this line of PLX; then add another line. The parameters are as follows:

Executable File: D: \ Perl \ bin \ perl.exe-T "% s" % s

Extension:. cgi

Action: all actions

Note: This "-T" must be added, otherwise the access will report the error: Too late for "-T" option at E: \ bugzilla-2.18rc3 \ index. CGI Line 1. (this is not mentioned in many articles on the Internet. I have been searching for it for a long time)

2. Right-click the default web site and choose "New-" virtual directory ". You can give this fake directory a name, for example," bugzill ", pointing to the E: \ Bugzilla directory, add "index. cgi ".

3. Open your browser and enter http: // localhost/Bugzilla in the address bar. If you see the bugzilla page, the installation is successful and can now be used properly.

5. Mail sending Configuration

Because Bugzilla uses sendmail by default to send emails, you have to modify the number of places you want to send emails on Windows.

1. Open the CGI. pl, \ Bugzilla \ bugmail. PM and \ Bugzilla \ token. PM files under E: \ bugzilla-2.18rc3 \ directory and find the following content (may be slightly different ):

Open Sendmail, "|/usr/lib/sendmail-t-I ";

Print Sendmail $ MSG;

Close Sendmail;

Change

Use Net: SMTP;

My $ smtp_server = 'smtp .163.com '; # Replace it with your own email server address.

# Use die on error, so that the mail will be in the 'Unsent mails 'and

# Can be sent from the sanity check page.

My $ SMTP = net: SMTP-> New ($ smtp_server) |

Die 'cannot connect to server \ '$ smtp_server \'';

$ SMTP-> auth ('youname @ 163.com ', 'Password') or die "auth error \ n"; # Replace the username and password on your own email server.

$ SMTP-> mail ('younam @ 163.com '); # Replace it with your own email address.

$ SMTP-> to ($ login); # note that the login parameter names in each file are different.

$ SMTP-> data ();

$ SMTP-> datasend ($ MSG); # note that the msg parameter names in each file are different.

$ SMTP-> dataend ();

$ SMTP-> quit;

2. Install Perl's net: SMTP Module

In the DOS window, run the following command to add the download module address:

C: \> ppm rep add glob http://glob.com.au/ppm

Run the following command to install the SDK:

C: \> ppm install net: SMTP

You will be prompted to find multiple modules (3) and list the names of these modules.

3. Use ppm install <Module name> to install all the three modules listed in the previous step.

4. Save the following content to the C: \ test. pl file,

# Test. pl

#! /Usr/local/bin/perl-W

Use Net: SMTP;

$ SMTP = net: SMTP-> New ('smtp .163.com '); # Replace it with your own mail server address.

$ SMTP-> auth ('yourname @ 163.com ', 'Password') or die "auth error \ n"; # Replace the username and password on your own email server.

$ SMTP-> mail ('yourname @ 163.com '); # Replace it with your own email address.

$ SMTP-> to ('yourname @ 163.com '); # The Receiving address.

$ SMTP-> data ();

$ SMTP-> datasend ("to: yourname@163.com \ n ");

$ SMTP-> datasend ("\ n ");

$ SMTP-> datasend ("Chinese content 1 \ nsecond line \ n third line ");

$ SMTP-> dataend ();

$ SMTP-> quit;

Then run c: \> Perl test. pl

5. Check your mailbox to see if you have received a new email? After receiving the email, it indicates that the email is working properly. If not, check steps 2, 3, and 4.

Vi. Localization

1. Copy E: \ bugzilla-2.18rc3 \ template \ en in the original directory, the directory is E: \ bugzilla-2.18rc3 \ template \ CN.

To the http://www.sourceforge.net, find the bugzilla-CN, the current version is only 2.17.99, but the same can be used (some pages will be different from 2.18), the file name is: bugzilla-2.17-cn-0.99-withCSS.tar.gz. After downloading it, unbind it to the E: \ bugzilla-2.18rc3 \ template directory, and overwrite the files under the CN directory.

2. Open your browser, enter http: // localhost/Bugzilla in the address bar, and click the "Parameters" link at the bottom of the page, modify the attribute values of "Ages" and "defaultlanguage" to "cn". Submit the page to view the Chinese page. If no Chinese is displayed, refresh the page.


Refer:

Http://www.kuihua.net/bbs/dispbbs.asp? Boardid = 1 & rootid = 1035 & id = 1035 & star = 1 & Skin =

Http://blog.csdn.net/ycw/archive/2004/02/07/4187.aspx

Http://blog.csdn.net/s00n/archive/2004/09/20/111065.aspx

Author's blog:Http://blog.csdn.net/acsu/

Related Article

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.