如何在windows上安装bugzilla

Bugzilla System
 
OS: Windows2003
Requirement Software:
Apache_2.0.59
ActivePerl-5.8.8
bugzilla-2.22.2.tar.gz (stable)
mysql-5.2
 
1)       Setup Apache Server by default;
2)       Setup MySQL and create a database;
C:\> cd mysql
C:\mysql> cd bin
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, DROP, REFERENCES, LOCK TABLES, CREATE TEMPORARY TABLES ON bugs.* TO bugs@localhost IDENTIFIED BY 'password';   //Create a user name bugs, the password is password and grant him so many rights
mysql> FLUSH PRIVILEGES;   //Flush the mysql’s cache
mysql> create database bugs;   //create a database named bugs
mysql> exit                                              // exit the console
 
3)       Setup Perl;
C:\> cd Perl
C:\Perl> ppm rep add bugzilla [url]http://landfill.bugzilla.org/ppm/[/url]
C:\Perl> ppm install AppConfig
C:\Perl> ppm install Date::Format
C:\Perl> ppm install Template
C:\Perl> ppm install Mail::Mailer
C:\Perl> ppm install MIME::Tools
C:\Perl> ppm install GD
C:\Perl> ppm install Template::Plugin
C:\Perl> ppm install Chart
C:\Perl> ppm install XML::Twig
C:\Perl> ppm install GD::Graph
C:\Perl> ppm install GD::Text::Align
C:\Perl> ppm install PatchReader
C:\Perl> ppm install Image::Magick
C:\Perl> ppm install HTML::Scrubber
C:\Perl> ppm install GDGraph
C:\Perl> ppm install GDTextUtil
C:\Perl> ppm install DBD-mysql
C:\Perl> ppm install Net::Ldap
 
4)       Extract Bugzilla;
a)       Extract bugzilla-2.22.2.tar.gz to C:\
b)       Rename bugzilla-2.22.2 to bugzilla
 
5)       Modify the Apache configure file;
Reconfigure the httpd.conf, see below:
 
DocumentRoot "c:\bugzilla"
 
<Directory "c:\bugzilla">
  AddHandler cgi-script .cgi
  Options +Indexes +ExecCGI
  DirectoryIndex index.cgi
  AllowOverride Limit
  Options Indexes FollowSymLinks ExecCGI
  AllowOverride All
  Order allow,deny
  Allow from all
ScriptInterpreterSource Registry-Strict
</Directory>
 
UserDir "My Documents/My Website"
 
DirectoryIndex index.cgi index.html index.html.var default.htm
 
6)       Register CGI in REGEDIT table
- Create a file named CGI.reg.
- Add below information.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.cgi]
[HKEY_CLASSES_ROOT\.cgi\Shell]
[HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI]
[HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command]
@="c:\\perl\\bin\\perl.exe -T"
- Run this file to complete register.
 
7)       Setup Bugzilla;
C:\>
C:\> cd bugzilla
C:\bugzilla> checksetup.pl
 
Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.63
Checking for             CGI (v2.93)   ok: found v3.05
Checking for    Data::Dumper (any)     ok: found v2.121_02
Checking for    Date::Format (v2.21)   ok: found v2.22
Checking for             DBI (v1.38)   ok: found v1.52
Checking for      File::Spec (v0.84)   ok: found v3.01
Checking for      File::Temp (any)     ok: found v0.14
Checking for        Template (v2.08)   ok: found v2.15
Checking for      Text::Wrap (v2001.0131) ok: found v2001.09292
Checking for    Mail::Mailer (v1.65)   ok: found v1.74
Checking for        Storable (any)     ok: found v2.13
 
The following Perl modules are optional:
Checking for              GD (v1.20)   ok: found v2.16
Checking for Template::Plugin::GD::Image (any)      not found
Checking for     Chart::Base (v1.0)    ok: found v2.3
Checking for     XML::Parser (any)     ok: found v2.34
Checking for       GD::Graph (any)     ok: found v1.43
Checking for GD::Text::Align (any)     ok: found v1.18
Checking for     PatchReader (v 0.9.4 )  ok: found v0.9.5
Checking for    HTML::Parser (v3.40)    found v3.38
Checking for  HTML::Scrubber (any)      found
 
All the required modules are available at:
    [url]http://landfill.bugzilla.org/ppm/[/url]
You can add the repository with the following command:
    ppm rep add bugzilla [url]http://landfill.bugzilla.org/ppm/[/url]
 
If you you want to see graphical bug reports (bar, pie and line charts of
current data), you should install libgd and the following Perl modules:
 
Template::Plugin::GD: ppm install Template
 
If you want additional HTML tags within product and group descriptions,
you should install:
HTML::Scrubber: ppm install HTML::Scrubber
HTML::Parser: ppm install HTML::Parser
 
Checking user setup ...
Removing existing compiled templates ...
Precompiling templates ...
 
Can't connect to the database.
Error: Can't connect to MySQL server on 'localhost' (10061)
  Is your database installed and up and running?
  Do you have the correct username and password selected in localconfig?
-----------------------------------------------------------------------------------------------------------------
Edit localconfig in notepad.exe
$db_port = 3306;
$db_pass = password';
Save and exit
-----------------------------------------------------------------------------------------------------------------
C:\bugzilla> checksetup.pl
 
Ok.
[url]http://localhost[/url]

你可能感兴趣的:(windows,职场,休闲)