From: mozilla%colinogilvie.co.uk <> Date: Thu, 13 Jul 2006 23:57:16 +0000 (+0000) Subject: Documentation for Bug 282686: Multiple projects sharing the same Bugzilla codebase... X-Git-Tag: bugzilla-2.22.1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c006a31cb84cc8ed57d4ec4a23e6c158d8476c06;p=thirdparty%2Fbugzilla.git Documentation for Bug 282686: Multiple projects sharing the same Bugzilla codebase (different datastores). Original Patch by guillomovitch@zarb.org; Completed by Colin Ogilvie ; r=vladd --- diff --git a/docs/xml/installation.xml b/docs/xml/installation.xml index dab2d416fd..6a94cd4507 100644 --- a/docs/xml/installation.xml +++ b/docs/xml/installation.xml @@ -1,5 +1,5 @@ - + Installing Bugzilla @@ -1477,6 +1477,46 @@ AddType application/rdf+xml .rdf +
+ Multiple Bugzilla databases with a single installation + + The previous instructions refered to a standard installation, with + one unique Bugzilla database. However, you may want to host several + distinct installations, without having several copies of the code. This is + possible by using the PROJECT environment variable. When accessed, + Bugzilla checks for the existence of this variable, and if present, uses + its value to check for an alternative configuration file named + localconfig.<PROJECT> in the same location as + the default one (localconfig). It also checks for + customized templates in a directory named + <PROJECT> in the same location as the + default one (template/<langcode>). By default + this is template/en/default so PROJECT's templates + would be located at template/en/PROJECT. + + To set up an alternate installation, just export PROJECT=foo before + running checksetup.pl for the first time. It will + result in a file called localconfig.foo instead of + localconfig. Edit this file as described above, with + reference to a new database, and re-run checksetup.pl + to populate it. That's all. + + Now you have to configure the web server to pass this environment + variable when accessed via an alternate URL, such as virtual host for + instance. The following is an example of how you could do it in Apache, + other Webservers may differ. + +<VirtualHost 212.85.153.228:80> + ServerName foo.bar.baz + SetEnv PROJECT foo + Alias /bugzilla /var/www/bugzilla +</VirtualHost> + + + + Don't forget to also export this variable before accessing Bugzilla + by other means, such as cron tasks for instance. +
OS-Specific Installation Notes