Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates > by-pkgid > 3b735b44c1e188a44c40f81bded6b6df > files > 946

bugzilla-4.4.12-1.mga5.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>2.1.&#160;Installation</title><link rel="stylesheet" type="text/css" href="../../style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><meta name="keywords" content="Bugzilla, Guide, installation, FAQ, administration, integration, MySQL, Mozilla, webtools"><link rel="home" href="index.html" title="The Bugzilla Guide - 4.4.12 Release"><link rel="up" href="installing-bugzilla.html" title="Chapter&#160;2.&#160;Installing Bugzilla"><link rel="prev" href="installing-bugzilla.html" title="Chapter&#160;2.&#160;Installing Bugzilla"><link rel="next" href="configuration.html" title="2.2.&#160;Configuration"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.1.&#160;Installation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="installing-bugzilla.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;2.&#160;Installing Bugzilla</th><td width="20%" align="right">&#160;<a accesskey="n" href="configuration.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="installation"></a>2.1.&#160;Installation</h2></div></div></div><div class="note" style="margin-left: 1em; margin-right: 1em"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/note.gif"></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>If you just want to <span class="emphasis"><em>use</em></span> Bugzilla, 
      you do not need to install it. None of this chapter is relevant to
      you. Ask your Bugzilla administrator for the URL to access it from
      your web browser.
      </p></td></tr></table></div><p>The Bugzilla server software is usually installed on Linux or 
    Solaris. 
    If you are installing on another OS, check <a class="xref" href="os-specific.html" title="2.5.&#160;OS-Specific Installation Notes">Section&#160;2.5, &#8220;OS-Specific Installation Notes&#8221;</a>
    before you start your installation to see if there are any special
    instructions.
    </p><p>This guide assumes that you have administrative access to the
    Bugzilla machine. It not possible to
    install and run Bugzilla itself without administrative access except
    in the very unlikely event that every single prerequisite is
    already installed.
    </p><div class="warning" style="margin-left: 1em; margin-right: 1em"><table border="0" summary="Warning"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../images/warning.gif"></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>The installation process may make your machine insecure for
      short periods of time. Make sure there is a firewall between you
      and the Internet.
      </p></td></tr></table></div><p>
    You are strongly recommended to make a backup of your system
    before installing Bugzilla (and at regular intervals thereafter :-).
    </p><p>In outline, the installation proceeds as follows:
    </p><div class="procedure"><ol class="procedure" type="1"><li class="step"><p><a class="link" href="installation.html#install-perl" title="2.1.1.&#160;Perl">Install Perl</a>
        (5.8.1 or above)
        </p></li><li class="step"><p><a class="link" href="installation.html#install-database" title="2.1.2.&#160;Database Engine">Install a Database Engine</a>
        </p></li><li class="step"><p><a class="link" href="installation.html#install-webserver" title="2.1.3.&#160;Web Server">Install a Webserver</a>
        </p></li><li class="step"><p><a class="link" href="installation.html#install-bzfiles" title="2.1.4.&#160;Bugzilla">Install Bugzilla</a>
        </p></li><li class="step"><p><a class="link" href="installation.html#install-perlmodules" title="2.1.5.&#160;Perl Modules">Install Perl modules</a>
        </p></li><li class="step"><p>
          <a class="link" href="installation.html#install-MTA" title="2.1.6.&#160;Mail Transfer Agent (MTA)">Install a Mail Transfer Agent</a>
          (Sendmail 8.7 or above, or an MTA that is Sendmail-compatible with at least this version)
        </p></li><li class="step"><p>Configure all of the above.
        </p></li></ol></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="install-perl"></a>2.1.1.&#160;Perl</h3></div></div></div><p>Installed Version Test: </p><pre class="programlisting">perl -v</pre><p>Any machine that doesn't have Perl on it is a sad machine indeed.
      If you don't have it and your OS doesn't provide official packages, 
      visit <a class="ulink" href="http://www.perl.org" target="_top">http://www.perl.org</a>.
      Although Bugzilla runs with Perl 5.8.1,
      it's a good idea to be using the latest stable version.
      </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="install-database"></a>2.1.2.&#160;Database Engine</h3></div></div></div><p>
        Bugzilla supports MySQL, PostgreSQL and Oracle as database servers.
        You only require one of these systems to make use of Bugzilla.
      </p><div class="section"><div class="titlepage"><div><div><h4 class="title"><a name="install-mysql"></a>2.1.2.1.&#160;MySQL</h4></div></div></div><p>Installed Version Test: </p><pre class="programlisting">mysql -V</pre><p>
          If you don't have it and your OS doesn't provide official packages, 
          visit <a class="ulink" href="http://www.mysql.com" target="_top">http://www.mysql.com</a>. You need MySQL version
          5.0.15 or higher.
          </p><div class="note" style="margin-left: 1em; margin-right: 1em"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/note.gif"></td><th align="left"></th></tr><tr><td align="left" valign="top"><p> Many of the binary
            versions of MySQL store their data files in 
            <code class="filename">/var</code>.
            On some Unix systems, this is part of a smaller root partition,
            and may not have room for your bug database. To change the data
            directory, you have to build MySQL from source yourself, and
            set it as an option to <code class="filename">configure</code>.</p></td></tr></table></div><p>If you install from something other than a packaging/installation
          system, such as .rpm (RPM Package Manager), .deb (Debian Package), .exe
          (Windows Executable), or .msi (Windows Installer), make sure the MySQL
          server is started when the machine boots.
          </p></div><div class="section"><div class="titlepage"><div><div><h4 class="title"><a name="install-pg"></a>2.1.2.2.&#160;PostgreSQL</h4></div></div></div><p>Installed Version Test: </p><pre class="programlisting">psql -V</pre><p>
          If you don't have it and your OS doesn't provide official packages, 
          visit <a class="ulink" href="http://www.postgresql.org/" target="_top">http://www.postgresql.org/</a>. You need PostgreSQL
          version 8.03.0000 or higher.
          </p><p>If you install from something other than a packaging/installation
          system, such as .rpm (RPM Package Manager), .deb (Debian Package), .exe
          (Windows Executable), or .msi (Windows Installer), make sure the
          PostgreSQL server is started when the machine boots.
          </p></div><div class="section"><div class="titlepage"><div><div><h4 class="title"><a name="install-oracle"></a>2.1.2.3.&#160;Oracle</h4></div></div></div><p>
          Installed Version Test: </p><pre class="programlisting">select * from v$version</pre><p>
          (you first have to log in into your DB)
        </p><p>
          If you don't have it and your OS doesn't provide official packages,
          visit <a class="ulink" href="http://www.oracle.com/" target="_top">http://www.oracle.com/</a>. You need Oracle
          version 10.02.0 or higher.
        </p><p>
          If you install from something other than a packaging/installation
          system, such as .rpm (RPM Package Manager), .deb (Debian Package), .exe
          (Windows Executable), or .msi (Windows Installer), make sure the
          Oracle server is started when the machine boots.
        </p></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="install-webserver"></a>2.1.3.&#160;Web Server</h3></div></div></div><p>Installed Version Test: view the default welcome page at
      http://&lt;your-machine&gt;/</p><p>
        You have freedom of choice here, pretty much any web server that
        is capable of running <a class="glossterm" href="glossary.html#gloss-cgi"><em class="glossterm">CGI</em></a>
        scripts will work.
        However, we strongly recommend using the Apache web server
        (either 1.3.x or 2.x), and the installation instructions usually assume
        you are using it. If you have got Bugzilla working using another web server,
        please share your experiences with us by filing a bug in
        <a class="ulink" href="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla;component=Documentation" target="_top">Bugzilla Documentation</a>.
      </p><p>
      If you don't have Apache and your OS doesn't provide official packages, 
      visit <a class="ulink" href="http://httpd.apache.org/" target="_top">http://httpd.apache.org/</a>.
      </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="install-bzfiles"></a>2.1.4.&#160;Bugzilla</h3></div></div></div><p>
        <a class="ulink" href="http://www.bugzilla.org/download/" target="_top">Download a Bugzilla tarball</a>
        (or <a class="ulink" href="https://wiki.mozilla.org/Bugzilla:Bzr" target="_top">check it out from Bzr</a>)
        and place it in a suitable directory, accessible by the default web server user
        (probably <span class="quote">&#8220;<span class="quote">apache</span>&#8221;</span> or <span class="quote">&#8220;<span class="quote">www</span>&#8221;</span>). 
        Good locations are either directly in the web server's document directories or
        in <code class="filename">/usr/local</code> with a symbolic link to the web server's 
        document directories or an alias in the web server's configuration.
      </p><div class="caution" style="margin-left: 1em; margin-right: 1em"><table border="0" summary="Caution"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="../images/caution.gif"></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>The default Bugzilla distribution is NOT designed to be placed
        in a <code class="filename">cgi-bin</code> directory. This
        includes any directory which is configured using the
        <code class="option">ScriptAlias</code> directive of Apache.
        </p></td></tr></table></div><p>Once all the files are in a web accessible directory, make that
      directory writable by your web server's user. This is a temporary step
      until you run the 
      <code class="filename">checksetup.pl</code>
      script, which locks down your installation.</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="install-perlmodules"></a>2.1.5.&#160;Perl Modules</h3></div></div></div><p>Bugzilla's installation process is based
      on a script called <code class="filename">checksetup.pl</code>. 
      The first thing it checks is whether you have appropriate 
      versions of all the required
      Perl modules. The aim of this section is to pass this check. 
      When it passes, proceed to <a class="xref" href="configuration.html" title="2.2.&#160;Configuration">Section&#160;2.2, &#8220;Configuration&#8221;</a>.
      </p><p>
      At this point, you need to <code class="filename">su</code> to root. You should
      remain as root until the end of the install. To check you have the
      required modules, run:
      </p><pre class="screen"><code class="prompt">bash#</code> ./checksetup.pl --check-modules</pre><p>
        <code class="filename">checksetup.pl</code> will print out a list of the
        required and optional Perl modules, together with the versions
        (if any) installed on your machine.
        The list of required modules is reasonably long; however, you 
        may already have several of them installed.
      </p><p>
        The preferred way to install missing Perl modules is to use the package
        manager provided by your operating system (e.g <span class="quote">&#8220;<span class="quote">rpm</span>&#8221;</span> or
        <span class="quote">&#8220;<span class="quote">yum</span>&#8221;</span> on Linux distros, or <span class="quote">&#8220;<span class="quote">ppm</span>&#8221;</span> on Windows
        if using ActivePerl, see <a class="xref" href="os-specific.html#win32-perl-modules" title="2.5.1.2.&#160;Perl Modules on Win32">Section&#160;2.5.1.2, &#8220;Perl Modules on Win32&#8221;</a>).
        If some Perl modules are still missing or are too old, then we recommend
        using the <code class="filename">install-module.pl</code> script (doesn't work
        with ActivePerl on Windows). If for some reason you really need to
        install the Perl modules manually, see
        <a class="xref" href="install-perlmodules-manual.html" title="Appendix&#160;C.&#160;Manual Installation of Perl Modules">Appendix&#160;C, <i>Manual Installation of Perl Modules</i></a>. For instance, on Unix,
        you invoke <code class="filename">install-module.pl</code> as follows:
      </p><pre class="screen"><code class="prompt">bash#</code> perl install-module.pl &lt;modulename&gt;</pre><div class="tip" style="margin-left: 1em; margin-right: 1em"><table border="0" summary="Tip"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../images/tip.gif"></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>Many people complain that Perl modules will not install for
        them. Most times, the error messages complain that they are missing a
        file in 
        <span class="quote">&#8220;<span class="quote">@INC</span>&#8221;</span>.
        Virtually every time, this error is due to permissions being set too
        restrictively for you to compile Perl modules or not having the
        necessary Perl development libraries installed on your system.
        Consult your local UNIX systems administrator for help solving these
        permissions issues; if you 
        <span class="emphasis"><em>are</em></span>
        the local UNIX sysadmin, please consult the newsgroup/mailing list
        for further assistance or hire someone to help you out.</p></td></tr></table></div><div class="note" style="margin-left: 1em; margin-right: 1em"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/note.gif"></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>If you are using a package-based system, and attempting to install the
        Perl modules from CPAN, you may need to install the "development" packages for
        MySQL and GD before attempting to install the related Perl modules. The names of
        these packages will vary depending on the specific distribution you are using,
        but are often called <code class="filename">&lt;packagename&gt;-devel</code>.</p></td></tr></table></div><p>
        Here is a complete list of modules and their minimum versions.
        Some modules have special installation notes, which follow.
      </p><p>Required Perl modules:
      </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>
            CGI (3.51)
          </p></li><li class="listitem"><p>
            Date::Format (2.23)
          </p></li><li class="listitem"><p>
            DateTime (0.28)
          </p></li><li class="listitem"><p>
            DateTime::TimeZone (0.71)
          </p></li><li class="listitem"><p>
            DBI (1.614)
          </p></li><li class="listitem"><p>
            DBD::mysql (4.001) if using MySQL
          </p></li><li class="listitem"><p>
            DBD::Pg (2.7.0) if using PostgreSQL
          </p></li><li class="listitem"><p>
            DBD::Oracle (1.19) if using Oracle
          </p></li><li class="listitem"><p>
            Digest::SHA (any)
          </p></li><li class="listitem"><p>
            Email::Send (2.04)
          </p></li><li class="listitem"><p>
            Email::MIME (1.904)
          </p></li><li class="listitem"><p>
            Template (2.22)
          </p></li><li class="listitem"><p>
            URI (1.37)
          </p></li></ol></div><p>

      Optional Perl modules:
      </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>
            GD (1.20) for bug charting
          </p></li><li class="listitem"><p>
            Template::Plugin::GD::Image
            (any) for Graphical Reports
          </p></li><li class="listitem"><p>
            Chart::Lines (2.1.0) for bug charting
          </p></li><li class="listitem"><p>
            GD::Graph (any) for bug charting
          </p></li><li class="listitem"><p>
            GD::Text (any) for bug charting
          </p></li><li class="listitem"><p>
            XML::Twig (any) for bug import/export
          </p></li><li class="listitem"><p>
            MIME::Parser (5.406) for bug import/export
          </p></li><li class="listitem"><p>
            LWP::UserAgent
            (any) for Automatic Update Notifications
          </p></li><li class="listitem"><p>
            PatchReader (0.9.6) for pretty HTML view of patches
          </p></li><li class="listitem"><p>
            Net::LDAP
            (any) for LDAP Authentication
          </p></li><li class="listitem"><p>
            Authen::SASL
            (any) for SASL Authentication
          </p></li><li class="listitem"><p>
            Authen::Radius
            (any) for RADIUS Authentication
          </p></li><li class="listitem"><p>
            SOAP::Lite (0.712) for the web service interface
          </p></li><li class="listitem"><p>
            JSON::RPC
            (any) for the JSON-RPC interface
          </p></li><li class="listitem"><p>
            Test::Taint
            (any) for the web service interface
          </p></li><li class="listitem"><p>
            HTML::Parser
            (3.67) for More HTML in Product/Group Descriptions
          </p></li><li class="listitem"><p>
            HTML::Scrubber
            (any) for More HTML in Product/Group Descriptions
          </p></li><li class="listitem"><p>
            Email::Reply
            (any) for Inbound Email
          </p></li><li class="listitem"><p>
            TheSchwartz
            (1.07) for Mail Queueing
          </p></li><li class="listitem"><p>
            Daemon::Generic
            (any) for Mail Queueing
          </p></li><li class="listitem"><p>
            mod_perl2
            (1.999022) for mod_perl
          </p></li></ol></div><p>
      </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="install-MTA"></a>2.1.6.&#160;Mail Transfer Agent (MTA)</h3></div></div></div><p>
        Bugzilla is dependent on the availability of an e-mail system for its 
        user authentication and for other tasks.
      </p><div class="note" style="margin-left: 1em; margin-right: 1em"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/note.gif"></td><th align="left"></th></tr><tr><td align="left" valign="top"><p>
          This is not entirely true.  It is possible to completely disable 
          email sending, or to have Bugzilla store email messages in a 
          file instead of sending them.  However, this is mainly intended 
          for testing, as disabling or diverting email on a production 
          machine would mean that users could miss important events (such 
          as bug changes or the creation of new accounts).
        </p><p>
          For more information, see the <span class="quote">&#8220;<span class="quote">mail_delivery_method</span>&#8221;</span> parameter
          in <a class="xref" href="parameters.html" title="3.1.&#160;Bugzilla Configuration">Section&#160;3.1, &#8220;Bugzilla Configuration&#8221;</a>.
        </p></td></tr></table></div><p>
        On Linux, any Sendmail-compatible MTA (Mail Transfer Agent) will 
        suffice.  Sendmail, Postfix, qmail and Exim are examples of common 
        MTAs. Sendmail is the original Unix MTA, but the others are easier to 
        configure, and therefore many people replace Sendmail with Postfix or 
        Exim. They are drop-in replacements, so Bugzilla will not 
        distinguish between them.
      </p><p>
        If you are using Sendmail, version 8.7 or higher is required.
        If you are using a Sendmail-compatible MTA, it must be congruent with 
        at least version 8.7 of Sendmail.
      </p><p>
        Consult the manual for the specific MTA you choose for detailed 
        installation instructions. Each of these programs will have their own 
        configuration files where you must configure certain parameters to 
        ensure that the mail is delivered properly. They are implemented 
        as services, and you should ensure that the MTA is in the auto-start 
        list of services for the machine.
      </p><p>
        If a simple mail sent with the command-line 'mail' program 
        succeeds, then Bugzilla should also be fine.
      </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="using-mod_perl-with-bugzilla"></a>2.1.7.&#160;Installing Bugzilla on mod_perl</h3></div></div></div><p>It is now possible to run the Bugzilla software under <code class="literal">mod_perl</code> on
      Apache. <code class="literal">mod_perl</code> has some additional requirements to that of running
      Bugzilla under <code class="literal">mod_cgi</code> (the standard and previous way).</p><p>Bugzilla requires <code class="literal">mod_perl</code> to be installed, which can be
      obtained from <a class="ulink" href="http://perl.apache.org" target="_top">http://perl.apache.org</a> - Bugzilla requires
      version 1.999022 (AKA 2.0.0-RC5) to be installed.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="installing-bugzilla.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="installing-bugzilla.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="configuration.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&#160;2.&#160;Installing Bugzilla&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;2.2.&#160;Configuration</td></tr></table></div></body></html>