According to the documentation of Bugzilla 5.0, the following applications should be installed first:
- ActiveState Perl 5.18.2 (5.12.4 or higher)
- Apache 2.4 (2.2.x or higher)
- MySql 5.6 (5.0.15 or higher)
Download Bugzilla
1 |
|
or (when 5.0 is released)
1 |
|
Install required perl modules
1 |
|
Note, Don't forget DateTime::TimeZone::Local::Win32
, otherwise, following error will occur when we try to use bugzilla.
The following modules are needed if want to use bugzilla to sent mails through smtp.
1 |
|
Cannot determine local time zone
MySQL Configuration
Add a user
Connect to mysqld
1 |
|
Then add a new user call bugs
1 2 3 4 5 6 |
|
Configuration File
On my system, the conf file is at C:\ProgramData\MySQL\MySQL Server 5.6\my.ini
Add following lines
1 2 3 4 5 |
|
Apache Configuration
- Enable CGI Support by uncommenting following line
1 |
|
- Config Bugzilla
1 2 3 4 5 6 7 8 |
|
Note:
In order for ScriptInterpreterSource Registry-Strict to work, create a key HKEY_CLASSES_ROOT.cgi\Shell\ExecCGI\Command with the default value of the full path of perl.exe with a -T parameter. For example C:\Perl64\bin\perl.exe -T.
checksetup.pl
- Run checksetup.pl to generate
localconfig
file.
Edit the localconfig
file, in our case, only $db_pass
is needed.
- Run checksetup.pl again
Database tables will be created.
Administrator account (user name and password) will be created at the same time.
OK
http://127.0.0.1/bugzilla
should works now.
Links
- http://bugzilla.readthedocs.org/en/5.0/installing/windows.html
- http://search.cpan.org/dist/DateTime-TimeZone/lib/DateTime/TimeZone.pm
- http://www.cnblogs.com/mr-wid/archive/2013/05/09/3068229.html