Document ID: 0030
Topic: web, bug reporting, perl
Created: 2008-10-14
Last Updated: 2008-10-14
Author: Stefan Parvu
References: Perl 10, Bugzilla
OS: Solaris 10+
Note: This is work in progress !

Bugzilla on Solaris Operating Environment

This is a short introduction in how can you setup Bugzilla on Solaris using Perl and an web server using CGI or FastCGI. The current document focuses on Solaris 10 version and Sun Java System Webserver as software infrastructure used by Bugzilla. Since there are dozens of tutorials about Bugzilla + Apache the current blueprint will explain how to configure Bugzilla on Sun's Webserver 7.0 update 3 and Solaris. The database used in this example is: PostgreSQL but Mysql as well can be used. Perl 10.0 has been used.

Note: For those interested about Apache 2.x please check the relevant documentation how to setup Bugzilla on Apache platforms.

Table of Contents

Installation

Configuration


Installation

Perl 10

Bugzilla uses Perl as a language so we will need a proper installation of Perl on your system. Solaris 10 already comes with Perl tools pre-installed but to keep the things sane and dont confuse with the version delivered by the OS vendor we will plan to install and configure our own version. This way we can easily add, remove any Perl package we would like.

We will need to do the following to get ready our own version of Perl compiled and installed under Solaris 10. The compiler used here is Sun's Studio 12, but GNU compiler, gcc can be easily used as well.

Note: For configurations which uses Perl from blastwave, or other repository sources make sure you use that particular version to add all CPAN modules. Make sure your PATH variable is correctly set to point to your perl compiler !

Webserver

As already mentioned we will use instead of the popular Apache, Sun's version of the webserver: SJS Webserver from Sun's site. If you notice that the http link is not accurate please report this to the author of this document or search under Sun's site for Sun Java System Webserver.

Install the software under /opt/ws7 complete installation and setup a default HTTP instance, called as your machine name. If you would like to restrict the usage to the webserver to HTTPS, make sure your instance listens on 443 and you define a group of users which are able to access webserver's resources.

Note: Make sure you set for bugzilla directory the CGI File Type setting not the CGI dir. The difference is that you wont be able to use any style sheets if you select the first option !

Database

Bugzilla uses PostgreSQL or Mysql as a backend database. For this example we will use PostgreSQL. Solaris 10 already comes with PostgreSQL 8.1 and 8.2 versions of the databases. We will use 8.1 for this setup. In near future we should use the latest version and make the needed modifications.

   # su - postgres
   Make sure the DB is up and running. If not follow to setup a blank
   DB instance

   If you use PostgreSQL 8.3, create the DB:
   $ /usr/postgres/8.3/bin/initdb -D /var/postgres/8.3/data 
   The files belonging to this database system will be owned by user "postgres".
   This user must also own the server process.

   The database cluster will be initialized with locale C.
   The default database encoding has accordingly been set to SQL_ASCII.
   The default text search configuration will be set to "english".

   fixing permissions on existing directory /var/postgres/8.3/data ... ok
   creating subdirectories ... ok
   selecting default max_connections ... 100
   selecting default shared_buffers/max_fsm_pages ... 32MB/204800
   creating configuration files ... ok
   creating template1 database in /var/postgres/8.3/data/base/1 ... ok
   initializing pg_authid ... ok
   initializing dependencies ... ok
   creating system views ... ok
   loading system objects' descriptions ... ok
   creating conversions ... ok
   creating dictionaries ... ok
   setting privileges on built-in objects ... ok
   creating information schema ... ok
   vacuuming database template1 ... ok
   copying template1 to template0 .

   You can use directly PostgreSQL 8.3:
   $ svcadm enable postgresql_83:default_32bit


   $ createuser -U postgres -dAP bugs 
    runing this as postgres user and remember this 
    password because will be needed to bugzilla's localconfig file

   $ vi /var/lib/pgsql/data/pg_hba.conf
      host all bugs 127.0.0.1 255.255.255.255 md5 ...

   # svcadm restart postgresql:version_81
   or for PostgreSQL 8.3:
   $  svcadm restart postgresql_83:default_32bit

Bugzilla

At this moment all needed software has been installed and proper configured: web server, database and the Perl 10 compiler. You can now download bugzilla release and start configuring.

Configuration


Back to main homepage

This document is Copyright (c) 2008 Stefan Parvu
Document License: PDL