[Koha] Multiple Instances on same server
Henri-Damien LAURENT
laurenthdl at alinto.com
Mon Aug 27 19:01:55 NZST 2007
Hi,
An other way to have multiple instances running
is to have one Koha installation in, say /usr/local/koha with cgi-bin
and htdocs and logs.
and
baselib1, baselib2, baselib3 in mysql (each one being a copy koha
koha.mysql PLUS script updatedatabase).
WITH
one koha.conf for each base (say :
baselib1.conf
----
database=baselib1
.....
=======
baselib2.conf
---
database=baselib2
.....
=======
)
And two apache virtual-hosts for each instance (e.g. :
baselib1.conf
---
<VirtualHost *:80>
ServerAdmin root
DocumentRoot /usr/local/koha/opac/htdocs
ServerName opac.baselib1.org
ServerAlias opac.baselib1.org
ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
SetEnv PERL5LIB "/usr/local/koha/intranet/modules"
SetEnv KOHA_CONF "/path/to/baselib1.conf"
</VirtualHost>
<VirtualHost *:80>
ServerAdmin root
DocumentRoot /usr/local/koha/intranet/htdocs
ServerName intranet.baselib1.org
ServerAlias intranet.baselib1.org
ScriptAlias /cgi-bin/koha/ /usr/local/koha/intranet/cgi-bin/
SetEnv PERL5LIB "/usr/local/koha/intranet/modules"
SetEnv KOHA_CONF "/path/to/baselib1.conf"
</VirtualHost>
========
and so on
the differences of templates would be in database and templates added in
/usr/local/koha/intranet/htdocs/intranet-tmpl or
/usr/local/koha/opac/htdocs/intranet-tmpl
Hope that helps.
--
Henri-Damien LAURENT
More information about the Koha
mailing list