Confirmed users
683
edits
m (→Apache) |
(Reverting the last few changes. Useless and confusing information has been added by some contributors) |
||
Line 76: | Line 76: | ||
Extract the archive to the directory of your choice. For the remainder of this document I will assume that you have extracted Bugzilla into <b>C:\Bugzilla</b>. | Extract the archive to the directory of your choice. For the remainder of this document I will assume that you have extracted Bugzilla into <b>C:\Bugzilla</b>. | ||
====Upgrading From TarBall==== | ====Upgrading From TarBall==== | ||
Line 93: | Line 91: | ||
====Install==== | ====Install==== | ||
MySQL has a standard Windows installer. It's ok to select a Typical MySQL install (the default). For the remainder of this document I will assume you have installed MySQL into | MySQL has a standard Windows installer. It's ok to select a Typical MySQL install (the default). For the remainder of this document I will assume you have installed MySQL into <b>C:\mysql</b>. | ||
====Create Bugs Database and User==== | ====Create Bugs Database and User==== | ||
Line 99: | Line 97: | ||
Use the <b>mysql</b> command line utility to create the Bugzilla database and a MySQL account for Bugzilla. | Use the <b>mysql</b> command line utility to create the Bugzilla database and a MySQL account for Bugzilla. | ||
C:\ | Note in the following example 'sockmonkey' is my password for the bugs account: | ||
C:\mysql\bin><b>mysql --user=root -p mysql</b> | |||
Enter password: <b> | Enter password: <b>********</b> | ||
Welcome to the MySQL monitor. Commands end with ; or \g. | Welcome to the MySQL monitor. Commands end with ; or \g. | ||
Your MySQL connection id is | Your MySQL connection id is 15 to server version: 4.0.20a-debug | ||
Type 'help;' or '\h' for help. Type '\c' to clear the buffer. | Type 'help;' or '\h' for help. Type '\c' to clear the buffer. | ||
Line 122: | Line 121: | ||
Bye | Bye | ||
C:\ | C:\mysql\bin> | ||
If you are running MySQL 4.1, you may encounter the <b>Client does not support authentication protocol requested by server</b> error message. To fix this, once the user has been created you will have to reset the password using OLD_PASSWORD: | If you are running MySQL 4.1, you may encounter the <b>Client does not support authentication protocol requested by server</b> error message. To fix this, once the user has been created you will have to reset the password using OLD_PASSWORD: | ||
C:\mysql\bin><b>mysql --user=root -p mysql</b> | C:\mysql\bin><b>mysql --user=root -p mysql</b> | ||
Enter password: <b> | Enter password: <b>********</b> | ||
Welcome to the MySQL monitor. Commands end with ; or \g. | Welcome to the MySQL monitor. Commands end with ; or \g. | ||
Line 177: | Line 176: | ||
====Install Modules==== | ====Install Modules==== | ||
Bugzilla requires a number of perl modules to be installed. They are either available in the ActiveState repository, or at <b>http://theoryx5.uwinnipeg.ca/ppms/</b> (Perl 5.8.x) or <b>http://cpan.uwinnipeg.ca/PPMPackages/10xx/</b> (Perl 5.10.x) | Bugzilla requires a number of perl modules to be installed. They are either available in the ActiveState repository, or at <b>http://theoryx5.uwinnipeg.ca/ppms/</b> (Perl 5.8.x) or <b>http://cpan.uwinnipeg.ca/PPMPackages/10xx/</b> (Perl 5.10.x). | ||
If you use a proxy server or a firewall you may have trouble running PPM. This is covered in the [http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html#ppm_and_proxies ActivePerl FAQ]. | If you use a proxy server or a firewall you may have trouble running PPM. This is covered in the [http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html#ppm_and_proxies ActivePerl FAQ]. | ||
The <b>Net::LDAP</b> module is only required if you want to [http://www.bugzilla.org/docs/tip/html/extraconfig.html#bzldap use Active Directory for authentication]. | |||
C:\><b>ppm</b> | C:\><b>ppm</b> | ||
Line 248: | Line 192: | ||
Type 'help' to get started. | Type 'help' to get started. | ||
ppm> <b>rep add Bugzilla http:// | ppm> <b>rep add Bugzilla http://...uwinnipeg.ca/...</b> | ||
Repositories: | Repositories: | ||
Line 354: | Line 298: | ||
Successfully installed Net-LDAP-Express version 0.11 in ActivePerl 5.8.7.813. | Successfully installed Net-LDAP-Express version 0.11 in ActivePerl 5.8.7.813. | ||
ppm> | ppm> | ||
===Apache=== | ===Apache=== | ||
It is recommended that you run Bugzilla with the Apache web server. If you want to use IIS to run Bugzilla, there are [http://www.bugzilla.org/docs/ | It is recommended that you run Bugzilla with the Apache web server. If you want to use IIS to run Bugzilla, there are [http://www.bugzilla.org/docs/2.20/html/configuration.html#http-iis configuration instructions] in the Bugzilla documentation. | ||
====Download Apache 2.x==== | ====Download Apache 2.x==== | ||
Download the Apache HTTP Server version 2.x or high from: http://httpd.apache.org/download.cgi (5.8 Meg) | Download the Apache HTTP Server version 2.x or high from: http://httpd.apache.org/download.cgi (5.8 Meg). | ||
====Install==== | ====Install==== | ||
Yet another standard Windows Installer. Just follow the prompts, making sure you Install for All Users. For the remainder of this document I will assume you installed Apache into the default location, <b>C:\Program Files\Apache | Yet another standard Windows Installer. Just follow the prompts, making sure you Install for All Users. Be aware the Apache will always install itself into an <b>Apache2</b> directory under what ever path you specify. The default install path will be displayed as <b>C:\Program Files\Apache Group</b> which will result in Apache being installed to <b>C:\Program Files\Apache Group\Apache2</b>. This gets me every time. | ||
For the remainder of this document I will assume you installed Apache into the default location, <b>C:\Program Files\Apache Group\Apache2</b>. | |||
If you are already running IIS, you must configure apache to run on a port other than 80, however you aren't asked the port to listen on at install time. Choose <b>All Users</b> (which says port 80), and we'll change the port later. | If you are already running IIS, you must configure apache to run on a port other than 80, however you aren't asked the port to listen on at install time. Choose <b>All Users</b> (which says port 80), and we'll change the port later. | ||
Line 434: | Line 322: | ||
*C:\Bugzilla\data | *C:\Bugzilla\data | ||
*C:\Program Files\Apache | *C:\Program Files\Apache Group\Apache2\logs | ||
*C:\Temp | *C:\Temp | ||
Line 441: | Line 329: | ||
====Configure Port and DocumentRoot==== | ====Configure Port and DocumentRoot==== | ||
Edit <b>C:\Program Files\Apache | Edit <b>C:\Program Files\Apache Group\Apache2\conf\httpd.conf</b> with your [http://www.vim.org/ favourite text editor]. | ||
To change the port that Apache runs on (listens on, or binds to), edit the <b>Listen</b> option. | To change the port that Apache runs on (listens on, or binds to), edit the <b>Listen</b> option. | ||
Line 523: | Line 411: | ||
# | # | ||
# The Options directive is both complicated and important. Please see | # The Options directive is both complicated and important. Please see | ||
# http://httpd.apache.org/docs | # http://httpd.apache.org/docs-2.0/mod/core.html#options | ||
# for more information. | # for more information. | ||
# | # | ||
Line 562: | Line 450: | ||
In order for <b>ScriptInterpreterSource Registry-Strict</b> to work, you also need to add an entry to the Registry so Apache will use Perl to execute .cgi files. | In order for <b>ScriptInterpreterSource Registry-Strict</b> to work, you also need to add an entry to the Registry so Apache will use Perl to execute .cgi files. | ||
Create a key <b>HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command</b> with the default value of the full path of perl.exe with a -T parameter. For example <b>C:\Perl\bin\perl.exe -T</b> | |||
[[Image:Bugzilla-Regedit.png| | [[Image:Bugzilla-Regedit.png|100px|Regedit]] | ||
====Disable Logging==== | ====Disable Logging==== | ||
Line 592: | Line 469: | ||
====Restart Apache==== | ====Restart Apache==== | ||
Finally, restart Apache to get it pick up the changes. | Finally, restart Apache to get it pick up the changes. | ||
C:\><b>net stop apache2 | C:\><b>net stop apache2</b> | ||
The Apache2 | The Apache2 service is stopping.. | ||
The Apache2 | The Apache2 service was stopped successfully. | ||
C:\><b>net start apache2 | C:\><b>net start apache2</b> | ||
The Apache2 | The Apache2 service is starting. | ||
The Apache2 | The Apache2 service was started successfully. | ||
C:\> | C:\> | ||
Line 613: | Line 490: | ||
===Configure Bugzilla=== | ===Configure Bugzilla=== | ||
====checksetup.pl==== | |||
Run <b>checksetup.pl</b>. This will check your Perl modules and create <b>localconfig</b>. | |||
C:\><b>cd bugzilla</b> | |||
C:\bugzilla><b>perl checksetup.pl</b> | |||
Checking perl modules ... | |||
Checking for AppConfig (v1.52) ok: found v1.55 | |||
Checking for CGI (v2.93) ok: found v3.10 | |||
Checking for Data::Dumper (any) ok: found v2.121_04 | |||
Checking for Date::Format (v2.21) ok: found v2.22 | |||
Checking for DBI (v1.38) ok: found v1.48 | |||
Checking for File::Spec (v0.84) ok: found v3.05 | |||
Checking for File::Temp (any) ok: found v0.16 | |||
Checking for Template (v2.08) ok: found v2.13 | |||
Checking for Text::Wrap (v2001.0131) ok: found v2001.09293 | |||
Checking for Mail::Mailer (v1.65) ok: found v1.67 | |||
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 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 (v0.9.4) ok: found v0.9.5 | |||
Most ActivePerl modules are available at Apache's ppm repository. | |||
A list of mirrors is available at | |||
http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/ | |||
You can add the repository with the following command: | |||
ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/ | |||
Checking user setup ... | |||
This version of Bugzilla contains some variables that you may want | |||
to change and adapt to your local settings. Please edit the file | |||
'./localconfig' and rerun checksetup.pl | |||
The following variables are new to localconfig since you last ran | |||
checksetup.pl: index_html cvsbin interdiffbin diffpath create_htaccess | |||
webservergroup db_driver db_host db_pass db_sock db_check | |||
C:\bugzilla> | |||
====Edit localconfig==== | ====Edit localconfig==== | ||
Line 638: | Line 562: | ||
====checksetup.pl==== | ====checksetup.pl==== | ||
Run <b>checksetup.pl</b> again. This time it will build your database tables and initialise Bugzilla | Run <b>checksetup.pl</b> again. This time it will build your database tables and initialise Bugzilla. | ||
C:\bugzilla>perl checksetup.pl | C:\bugzilla>perl checksetup.pl | ||
Line 747: | Line 671: | ||
You should now be able to log into to Bugzilla using the account <b>checksetup.pl</b> just created. Point your web browser to >http://localhost/, choose <b>Log in to an existing account</b>, and login. | You should now be able to log into to Bugzilla using the account <b>checksetup.pl</b> just created. Point your web browser to >http://localhost/, choose <b>Log in to an existing account</b>, and login. | ||
In the page | In the page footer, choose <b>Parameters</b>. | ||
Put in your email address as the <b>maintainer</b>. | |||
maintainer: | maintainer: | ||
<b>byron@example.com</b> | <b>byron@example.com</b> | ||
Put in the URL to Bugzilla in the <b>urlbase</b> field. This URL will be used in emails, so don't use localhost. | |||
urlbase: | urlbase: | ||
<b>http://bugzilla.example.com/</b> | <b>http://bugzilla.example.com/</b> | ||
Download and install WebDot from http://www.graphviz.org/Download_windows.php. Put the complete path to dot.exe in <b>webdotbase</b>. | |||
webdotbase: | |||
<b>C:/Program Files/ATT/Graphviz/bin/dot.exe</b> | |||
===Scheduled Tasks=== | ===Scheduled Tasks=== |