How to install bugzilla 2.18rc3 on Windows (original)

xiaoxiao2021-03-06  74

I found some articles on Windows on Windows, I don't feel too much, that is, the details are not clear, I spent a few days, I finally installed bugzilla on Windows 2003, and wrote my installation process. So everyone doesn't have to walk. This article is only for Bugzilla 2.18rc3, and I have not tried it. In addition, I don't know the Perl script.

First, install mysql 1, download mysql (http://www.mysql.com/), I download my mysql-4.0.15-win.zip, install it directly. At the same time, you can download MYSQL Administrator 1.0, which is mysql management software, very easy to use. 2, modify mysql root user password E: /> cd mysql e: / mysql> cd bin E: / mysql / bin> mysql -u root mysql mysql> update user set password = password (') Where user = 'root'; mysql> flush privileges; where is a new password for root users. After changing the password, use the root user to access MySQL, you must use mysql -u root -p, press the prompt to knock into the correct root password. 3. Create a bugs user and assign the appropriate permissions mysql> Grant Select, Insert, Update, Delete, Index, Alter, Create, Drop, References, Lock Tables, Create Temporary Tables on bugs. * To bugs @ localhost identified by ' '; mysql> flush privilege; to remember the password of the BUGS user, use it below the bugzilla configuration file. 4, create a BUGS database mysql> Create Database bugg;

Second, download bugzilla (www.bugzilla.org) Now the latest version is bugzilla-2.18rc3, download it down to E: / bugzilla

Third, install Perl (this section can refer to Bugzilla's document) 1. Download ActivePerl (http://www.activestate.com/), I downloaded ActivePerl-5.8.4.810-mswin32-x86.msi, installed to E : / Perl (installation path can be customized, the following) Execute E: / Bugzilla> Perl checksetup.pl in the E: / BUGZILLA directory

This script checks if the required module has been installed, and initializes the database, and finally requires the input administrator's email address, username, and password. The first time I will not connect to the database, find the E: / bugzilla / localconfig file, open to find $ db_pass = ''; this line, fill in the password assigned to the BUGS user in the quotation mark, save.

Take a closer look at the prompt information to see which modules have not been installed. Then, install the modules that must be installed, first execute C: /> ppm repository add oi http://openinteract.sourceforge.net/ppmpages

Then use the following command to install: C: /> PPM Install

If you want to install an optional module: Do the following command Add the address of the download module C: /> PPM Rep Add Glob http://glob.com.au/ppm and use the following command to install: C: /> PPM Install

After each module is installed, it will display information similar to the following rows: Success Installed Appconfig Version 1.52 in ActivePerl 5.8.4.810.

Fourth, configure IIS 1. Open Control Panel -> Administrative Tools -> Internet Information Services, then default Web Site Right-click Select Properties-> Home Dictory-> Configuration, you can see extended in .pl and .plx in App mappings. The file has been added to this, double-click this line, open its property dialog, select "All Actions" in "Action", and modify the .plx line; then add a line, the parameters are as follows:

Executable file: d: /perl/bin/perl.exe -t "% s"% s extension: .cgi action: all action

Note: This "-t" must be added, otherwise it will be reported when you visit: Too Late for "-t" option at e: /bugzilla-2.18rc3/index.cgi line 1. (there are many articles on the Internet), I am looking for a long time)

2, in Default Web Site Right-click "New-" Virtual Directory ", you can give this false directory, such as" bugzill ", point to the E: / bugzilla directory, add" INDEX.CGI "in the default page.

3, open the browser, enter: http:// localhost / bugzilla, see the Bugzilla's page indicates that the installation is successful, and now you can use it.

5. Mail Send Configuration Because Bugzilla defaults to sendmail to send mail, you must send an email on Windows to modify several places. 1. Open the cgi.pl, / bugzilla / bugmail.pm and /bugzilla/token.pm file under the e: /bugzilla-2.18rc3/ directory, find the following (may be slightly different):

Open sendmail, "| / usr / lib / sendmail -t-t"; Print Sendmail $ MSG; Close Sendmail;

Replace

Use net :: smtp; my $ SMTP_SERVER = 'SMTP.163.com'; # here to change the mail server address you use yourself

# Use Die On Error, So That The Mail Will Be in 'unsent mails' and # can be success 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"; # Here you can use your own name and password on the mail server you use $ SMTP-> Mail (' Younam @ 163.com '); # Here you will use the email address of yourself $ SMTP-> to ($ login); # 注意 here, the login parameter name in each file is different $ SMTP-> DATA () $ SMTP-> Datasend ($ msg); # Note Here, the MSG parameter name in each file is different $ SMTP-> DATAEND (); $ SMTP-> quit;

2. Installing the NET:: SMTP module of Perl In the DOS window, perform the following command to add the address of the download module C: /> PPM Rep Add Glob http://glob.com.au/ppm

Then install the following command: C: /> PPM Install Net :: SMTP

I will prompt to find multiple modules (3), and list the names of these modules.

3, according to the module name listed in the previous step, use PPM Install to install all of the three modules listed.

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'); # here to change the mail server address you use yourself

$ SMTP-> AUTH ('yourname@163.com ',' password ') or die "auth error / n"; # Here you can use the username and password on your own mail server $ SMTP-> Mail (' Yourname @ 163.com '); # Here you can use the email address of your own address $ SMTP-> to ('yourname@163.com'); # Here is the received address $ SMTP-> DATA (); $ SMTP-> Datasend ("To: Yourname@163.com/N"); $ SMTP-> Datasend ("/ n"); $ SMTP-> Datasend ("Chinese Content One / NSECOND LINE / N Third Line Third Line"); $ SMTP-> DATAEND (); $ SMTP-> quit;

Then run C: /> Perl Test.pl

5. When you haven't received a new email in your mailbox? It means that the email can work normally. If you are not received, check 2, 3, 4 steps.

Sixth, Chinese 1. Put E: /BUGZILLA-2.18RC3/Template/en in the original directory, the directory is E: /BUGZILLA-2.18RC3/Template/cn. To http://www.sourceforge.net, find Bugzilla-CN, current version only 2.17.99, but you can use (some pages and 2.18 are different), the file name is: bugzilla-2.17-CN-0.99- WITHCSS.TAR.GZ. After downloading, unlocked to the E: /BUGZILLA-2.18RC3/Template directory, override the files in the CN directory.

2, open the browser, enter: http:// localhost / bugzilla, click "Parameters" link below the page, modify the "Languages" and "DefaultLanguage" attribute value "CN", submit the page, You can see the Chinese page. If you don't see Chinese, you should be able to refresh it. Reference: http://www.kuihua.net/bbs/dispbbs.asp? BoardId = 1 & rootid = 1035 & id = 1035 & star = 1 & Skin =

http://blog.9cbs.net/ycw/archive/2004/02/07/4187.aspx

http://blog.9cbs.net/s00n/archive/2004/09/20/111065.aspx

转载请注明原文地址:https://www.9cbs.com/read-93391.html

New Post(0)