Installing Multiple Instances of Koha ILMS

Multiple Instances of Koha
Add two different port numbers for new Koha instance

sudo gedit /etc/apache2/ports.conf

Add two new ports,

Listen 9001
Listen 9000

Create a new instance

sudo koha-create --create-db instancename

I created an instance (e.g. gems) for our college GEMS.

Open and edit apache site file add port numbers

sudo gedit /etc/apache2/sites-available/gems.conf

# Koha instance gems Apache config.

# OPAC
<VirtualHost *:9001>
  <IfVersion >= 2.4>
   Define instance "gems"
  </IfVersion>
   Include /etc/koha/apache-shared.conf
#  Include /etc/koha/apache-shared-disable.conf
#  Include /etc/koha/apache-shared-opac-plack.conf
   Include /etc/koha/apache-shared-opac.conf

   ServerName gems.myDNSname.org
   SetEnv KOHA_CONF "/etc/koha/sites/gems/koha-conf.xml"
   AssignUserID gems-koha gems-koha

   ErrorLog    /var/log/koha/gems/opac-error.log
#  TransferLog /var/log/koha/gems/opac-access.log
#  RewriteLog  /var/log/koha/gems/opac-rewrite.log
</VirtualHost>

# Intranet
<VirtualHost *:9000>
  <IfVersion >= 2.4>
   Define instance "gems"
  </IfVersion>
   Include /etc/koha/apache-shared.conf
#  Include /etc/koha/apache-shared-disable.conf
#  Include /etc/koha/apache-shared-intranet-plack.conf
   Include /etc/koha/apache-shared-intranet.conf

   ServerName gems-intra.myDNSname.org
   SetEnv KOHA_CONF "/etc/koha/sites/gems/koha-conf.xml"
   AssignUserID gems-koha gems-koha

   ErrorLog    /var/log/koha/gems/intranet-error.log
#  TransferLog /var/log/koha/gems/intranet-access.log
#  RewriteLog  /var/log/koha/gems/intranet-rewrite.log
</VirtualHost>

Save and close the file.

Restart Apache server

sudo /etc/init.d/apache2 restart

Open Koha staff client and proceed installation post-installation process.

http://127.0.1.1:9000

Zebra rebuild

koha-rebuild-zebra -v -f instancename

Find Koha new instance configuration files in

/etc/koha/sites/

Reference:
https://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha
http://kohageek.blogspot.com/2013/08/installing-multiple-instances-of-koha.html

0 Komentar