The Daily Scrum

Dedicated to Scrum, Agile and other stuff

Installation Bugzilla on OSX Mountain Lion Server

Introduction

I was forced to reinvent the wheel of installing Bugzilla on my development OSX Mountain Lion machine.

On this machine I have OSX server running. As perhaps many of you know Apple decided to change the way you can configure the web services. In this post I will describe the steps I took to install Bugzilla. In the first place this is for my own documentation and perhaps it will help others as well.

Here is my markdown content.

Here is my markdown content.

Here is my markdown content.

Here is my markdown content.

Here is my markdown content.

Here is my markdown content.

Here is my markdown content.

Here is my markdown content.

OSX server details

OSX Server details

Perl installation

I assume you have the default Perl installation on your OSX machine

This is perl 5, version 12, subversion 4 (v5.12.4) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

MySQL installation

I assume you have installed MySQL >v5.x I have v5.5.13 running

Server version: 5.5.13-log MySQL Community Server (GPL)

Apache Configuration

OSX Server stores its conf files in :

/Library/Server/Web/Config/apache2

Bugzilla settings

For Bugzilla the following settings are essential. Some of them can be configured through the OSX Server GUI:

<Directory "/Library/WebServer/bugzilla-trunk"> 
  AddHandler cgi-script .cgi .pl 
  Options +Indexes +ExecCGI +FollowSymLinks 
  DirectoryIndex index.cgi index.html 
  AllowOverride Limit FileInfo Indexes Options 
  Order allow,deny 
  Allow from all 
</Directory>

When you are using OSX Mountain Lion (not OSX Server)

  • On Mac OS X 10.8.2, by default: Apache is not enabled and Apple has removed the “Web Sharing” GUI that used to be available in previous versions
  • Google search “mac os x 10.8 enable apache” for blogs about how to get Apache enabled on Mac OS 10.8+.

httpd.conf is located in

/private/etc/apache2

New installation

TODO

Upgrade with bzr

Note:I assume you have installed bzr on your OS.

Go to your Bugzilla home directory

cd /usr/local/bugzilla

Switch to major version

sudo bzr switch 4.4

Updated to revision 8563.                                                                                        
Switched to branch: bzr://bzr.mozilla.org/bugzilla/4.4/

Run checksetup

sudo ./checksetup.pl

External links

[1] Installing Bugzilla on OSX server

[2] Installation guide Bugzilla - OS Specific