Install Bugzilla on Windows

Source: Internet
Author: User
Tags bug tracking system install perl mysql login perl script

Bugzilla install redbooks on Windows
It is really difficult to install Bugzilla in a Windows environment. The appconfig and template modules are hard to find and cannot find the Win32 version. This step is worse than the success.
I finally found an installation note in the Win32 environment. Read it...
The installation command for "ppm Module name" mentioned in this article is incorrect. It should be "ppm install Module name ". Using the nmake method, we finally completed the appconfig and template modules. Download related module packages and installation methods.
Bugzilla install redbooks on Windows

I have been searching for a suitable bug tracking system. I have been searching for it online for a long time. The expensive cial and licence restrictions are far beyond my support. I also thought about writing a calculation by myself, but it was not possible. I have heard about Bugzilla, but it seems that it is better to install it on Linux, but it is hard to install it on Windows. This is evident in the document and FAQ of Bugzilla:
Making Bugzilla work on Windows is still a very painful processes. the Bugzilla team is working to make it easier, but that goal is not considered a top priority. if you wish to run Bugzilla, we still recommend doing so on a UNIX based system such as GNU/Linux. as of this writing, all members of the bugzilla team and all known large installations run on UNIX based systems.
If after hearing all that, you have enough pain tolerance to attempt installing Bugzilla on Win32, here are some pointers. because this is a development version of the Guide, these instructions are subject to change without notice. in fact, the bugzilla Team hopes they do as we wowould like to have Bugzilla resonabally close to "out of the box" compatibility by the 2.18 release.
A.6.1. what is the easiest way to run Bugzilla on Win32 (WIN98 +/NT/2 k )?
Remove Windows. install linux. Install Bugzilla. The boss will never know the difference.
I spent almost two days finally installing Bugzilla on Windows 2000 Professional. Now I have contributed and hope to help you.
1. Install Perl
1. Download ActivePerl, you can go to the huajun Software Park to search (http://www.onlinedown.net/), I downloaded a ActivePerl-5.8.0.806-MSWin32-x86.msi, installed to D: \ Perl (installation path can be customized, the same as below)
2. Open D: \ Perl \ Lib \ CPAN. PM finds and changes $ CPAN: defaultsite | = "ftp://ftp.perl.org/pub/CPAN"; for $ CPAN: efaultsite | = "http://cpan.shellhung.org ";, the main purpose is to increase the download and installation speed when other Perl modules are installed below.
Ii. Install MySQL
1, download MySQL (http://www.onlinedown.net/downloads, I download mysql-4.0.15-win.zip, directly install it. At the same time, you can download and install mysqlcc-0.9.3-win32.zip, which is a management software of MySQL 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;
3. Download Bugzilla (www.bugzilla.org)
It is best to download the bugzilla-2.17.4, if install 2.16 seems to have to change a lot of Perl script, I did not install successfully :(
Decompress the package to E: \ Bugzilla.
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, click Add to add the following information:
Executable: D: \ Perl \ bin \ perl.exe "% s" % s
Extension:. pl
Limit to: Get, Head, post
Executable: D: \ Perl \ bin \ perl.exe "% s" % s
Extension:. cgi
Limit to: Get, Head, post
Perl.exe path
2. Add virtual directory: Bugzilla to the default web site. Execute is added to access permission.
3. Right-click the created virtual directory Bugzilla and choose Properties> documents. Add index. cgi to default clients.
5. Install Bugzilla
The Bugzilla directory contains a checksetup. pl script. This script is very good. It can check whether the Perl module required by Bugzilla is installed, and create database tables and admin users. However, you need to change it to several places to make it work normally in windows. The following descriptions are available in/Bugzilla/docs/html/Bugzilla-Guide.html:
4.3.1.3.1. Changes to checksetup. pl
In checksetup. pl, the line reading:
My $ mysql_binaries = 'which mysql ';
To
My $ mysql_binaries = "D: \ mysql \ bin \ mysql ";
And you'll also need to change:
My $ webservergid = getgrnam ($ my_webservergroup)
To
My $ webservergid = '8'
During the installation process, you have to change a few places for use. This is a step-by-step introduction below.
Run cmd to DOS, enter the bugzilla directory, and run Perl checksetup. Pl to check the prompt information.
1. Install the Perl Module
To cpan.shellhung.org, click Perl module-> All module, download AppConfig-1.55, CGI. pm-3.00, DBD-mysql-2.9002, DBI-1.38, Template-Toolkit-2.10, TimeDate-1.16. The Perl module has two installation methods: extract and download the module directly, enter its directory, and run
Perl makefile. pl
Nmake
Nmake Test
Nmake install
(Nmake will be available after VC is installed)
The other is running ppm <Module name>, Which is preferred for DBD-mysql-2.9002 and DBI-1.38.
After installation, run Perl checksetup. Pl to check whether all Perl modules required by Bugzilla are installed.
2. Modify checksetup. pl.
3751 ~ Comment out the following lines:
# $ Sig =\& bailout;
# $ Sig =\& bailout;
# $ Sig =\& bailout;
# $ Sig =\& bailout;
# System ("stty", "-echo"); # disable input echoing
Comment out the lines 3759 and 3769. Otherwise, it always prompts you to enter the admin password.
3. Run Perl checksetup. pl. If no error message is displayed, the localconfig file is generated.
4. Modify the localconfig File
$ Index_html = 1 (generate index.html)
$ Mysqlpath = "e \ mysql \ bin" (your MySQL \ bin path)
$ Webservergroup = "8"
$ Db_user = "bugs" (MySQL Login User name)
$ Db_pass = '<bugs_password>' (MySQL bugs User Logon password)
5. Run Perl checksetup. pl again. The system prompts you to create the Administrator's related email, realname, and password information.
Finally, if the request succeeds, the system returns the reminder: Bugzilla now requires version 8.7 or later of Sendmail.
6. modify all cgi files and remove the last character T in the first line.
Open your browser and type http: // localhost/Bugzilla to go To the bugzilla logon page.
7. Modify Bugzilla to a Chinese interface
To export $ ages = "cn ". Try opening the browser. Is it Chinese? Haha.
BTW, I have never understood Perl and CGI.

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.