Bugzilla Installation Process

vinoeh 389 views 28 slides Jul 05, 2016
Slide 1
Slide 1 of 28
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28

About This Presentation

No description available for this slideshow.


Slide Content

Installation of Bugzilla -Step by step process

Content Installation of Bugzilla Installation of MySQL Installation of ActiveState Perl Installation of Apache Create a Key Configuration of Bugzilla Proceed with Bugzilla

Installation Of Bugzilla Before installing Bugzilla, We have to install “Bazaar Standlone Installer from Bazaar website. Goto http://wiki.bazaar.canonical.com/WindowsDownloads Install the Bazaar Setup Open the Command Prompt and run this below command C:\> bzr co -r tag:bugzilla-4.0.2 bzr://bzr.mozilla.org/bugzilla/4.0 Bugzilla C:\>

Contd.. Now Download Bugzilla from Bugzilla download page. Go to http://www.bugzilla.org/download/#stable Extract the file Save it in “C:\Bugzilla”

Installation of MySQL Download the MySQL from MySQL website. Goto https://wiki.mozilla.org/Bugzilla:Win32Install Unzip it and Save in “C:\mysql” And Open http://dev.mysql.com/downloads/windows/installer/ and install MySQL installer and run it(Choose Typical installer).

Contd… Now change few settings..  Go to C:\mysql\bin\my.ini and set the max_allowed_packet setting to 4M. Underneath that, add following line ft_min_word_len = 2

Contd… Now Create “Bugs database user” Use the  MySQL  command line utility to create a MySQL account for Bugzilla. Note in the following example ‘123456’ is my password for the bugs account .

Contd… Open Command Prompt C:\mysql\bin> mysql --user=root -p mysql Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.15 MySQL Community Server (GPL) mysql > GRANT ALL PRIVILEGES ON bugs.* TO ' bugs'@'localhost ' IDENTIFIED BY ‘123456'; Query OK, 0 rows affected (0.03 sec) mysql > quit Bye C:\mysql\bin>

Installation of ActiveState PERL Install ActiveState Perl from ActiveState Website. Go to http://www.activestate.com/activeperl/downloads Run it. It will install into “C:\Perl” Go to Start  Perl Package Monitor Install NET::LDAP (this module is only required)

Contd.. Open the Command Prompt Run following commands C:\>ppm version C:\> ppm repo add UWinnipeg http://cpan.uwinnipeg.ca/PPMPackages/10xx/ C:\> ppm repo add Trouchelle http://trouchelle.com/ppm10/ C:\> ppm repo list C:\> ppm upgrade –install C:\> ppm install AppConfig C:\> ppm install TimeDate C:\> ppm install DBI

Contd.. C:\> ppm install DBD- mysql C:\> ppm install Template-Toolkit C:\> ppm install MailTools C:\> ppm install GD C:\> ppm install Chart C:\> ppm install GDGraph C:\> ppm install PatchReader C:\> ppm install Net-LDAP-Express

Installation of Apache Install Apache server from Apache Lounge. Go to https://www.apachelounge.com/download/ Install Microsoft Visual studios by clicking http://www.microsoft.com/en-us/download/details.aspx?id=30679 Install apache by clicking https://www.apachelounge.com/download/VC11/binaries/httpd-2.4.10-win32-VC11.zip Make Sure you install for all users

Contd… The default install path will be displayed as  C:\Program Files\Apache Group  which will result in Apache being installed to  C:\Program Files\Apache Group\Apache2 . Now Configure Port and Document Root Edit  C:\Program Files\Apache Group\Apache2\conf\ httpd.conf  with your  favourite text editor .

Contd.. To change the port that Apache runs on (listens on, or binds to), edit the  Listen  option. # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the < VirtualHost > # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 Listen 80

Contd.. Change the  DocumentRoot  setting to point to  C:\Bugzilla . Note there are two locations in  httpd.conf  that need to be updated. Note you need to use / instead of \ as a path separator. # # DocumentRoot : The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "C:/Bugzilla"

Contd… # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride None </Directory> # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # < Directory "C:/Bugzilla">

Contd… Configure CGI To enable CGI support in Apache, you need to enable the CGI handler, by uncommenting the  AddHandler cgi -script . cgi  line . # # AddHandler allows you to map certain file extensions to "handlers": # actions unrelated to filetype . These can be either built into the server # or added with the Action directive (see below) # # To use CGI scripts outside of ScriptAliased directories: # (You will also need to add " ExecCGI " to the "Options" directive.) # AddHandler cgi -script . cgi

Contd… And allow . cgi scripts in the Bugzilla directory by adding the  ExecCGI  option. We also need to allow Bugzilla’s . htaccess file to restrict access to sensitive documents by allowing it to override the defaults. This involves changing  AllowOverride None  to  AllowOverride All . Apache also needs to know to use Perl to execute . cgi files, via the  ScriptInterpreterSource  directive.

Contd.. # # This should be changed to whatever you set DocumentRoot to. # < Directory "C:/Bugzilla"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that " MultiViews " must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs-2.0/mod/core.html#options # for more information. # Options Indexes FollowSymLinks ExecCGI

Contd.. # # AllowOverride controls what directives may be placed in . htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all # # Tell Apache to use Perl to execute . cgi # ScriptInterpreterSource Registry-Strict </ Directory>

Contd… You also should add  index.cgi  to the  DirectoryIndex  list . # # DirectoryIndex : sets the file that Apache will serve if a directory # is requested. # # The index.html.var file (a type-map) is used to deliver content- # negotiated documents. The MultiViews Option can be used for the # same purpose, but it is much slower. # DirectoryIndex index.html index.html.var index.cgi

Contd… Create a Key Click Start Button and Type “ regedit ” Open Regedit Click HKEY_CLASSES_ROOT Under . cgi folder, Create Shell folder Under Shell folder, Create ExecCGI folder Under ExecCGI folder, Create Command folder Now, Change the DATA into C:\Perl\bin\perl.exe -T

Contd… Disable Logging # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a < VirtualHost > # container, they will be logged here. Contrariwise, if you *do* # define per-< VirtualHost > access logfiles , transactions will be # logged therein and *not* in this file. # # CustomLog logs/access.log common

Contd… Now, Restart apache C:\>net stop apache2 The Apache2 service is stopping.. The Apache2 service was stopped successfully. C:\>net start apache2 The Apache2 service is starting. The Apache2 service was started successfully. C:\>

Configuration Of Bugzilla Checksetup.pl: Run  checksetup.pl . This will check your Perl modules and create  localconfig . Edit localconfig : Open  C:\Bugzilla\localconfig and set db_pass C:\> cd bugzilla C:\bugzilla> perl checksetup.pl # # Enter your database password here. It's normally advisable to specify # a password for your bugzilla database user. # If you use apostrophe (') or a backslash (\) in your password, you'll # need to escape it by preceding it with a \ character. (\') or (\\) # $db_pass = ‘123456’

Contd… Run checksetup.pl again C:\bugzilla> perl checksetup.pl [...] Looks like we don't have an administrator set up yet. Either this is your first time using Bugzilla, or your administrator's privileges might have accidently been deleted. Enter the e-mail address of the administrator: [email protected] You entered '[email protected]'. Is this correct? [Y/n] y Enter the real name of the administrator: Byron Jones Enter a password for the administrator account: beef Please retype the password to verify: beef '[email protected]' is now set up as an administrator account. C:\bugzilla>

Parameters You should now be able to log into to Bugzilla using the account  checksetup.pl  just created. Point your web browser to  http://localhost/ , choose  Log in to an existing account , and login. Put in your email address as the  maintainer . Put in the URL to Bugzilla in the  urlbase  field. This URL will be used in emails, so don't use local host. maintainer: [email protected] urlbase: http://bugzilla.example.com/

Now, Go ahead with Bugzilla Thank you, Vino
Tags