Need Help in Koha Multiple instance
Hello all, I installed koha 3.8.x multiple instances on a debian-squeeze server by refering this link: http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha . But I am facing problem in rebuilding zebra in multiple instances. Actually when I installed one instance for example koha1, it installed perfectly and rebuildzebra.pl work fine after uploading my database. After installing another instance say koha2, it also installed perfectly and rebuildzebra.plalso works fine. But now the problem is that, now if I again come at my first instance i.e. koha1, make rebuildzebra.pl command to run again, it takes database of my 2nd instance. This is because in zebra configuration file while rebuild zebra it show like this:- Zebra configuration information ================================ Zebra biblio directory = /var/lib/*koha2*/zebradb/biblios Zebra authorities directory = /var/lib/*koha2*/zebradb/authorities Koha directory = /usr/share/*koha2*/intranet/cgi-bin In place of *koha2*, this should take *koha1* in my first instance of koha, which is making wrong zebra rebuild and show me biblio of koha2 instance in koha1 instance. How should I resolve this problem. Can Anyone help me in this regard? Thanks in advance for your help, Sunil
Greetings, I have not attempted multiple instances using the tarball method, particularly on a debian server, so I can't really help you. However, I think your problem is that your $KOHA_CONF points to the wrong xml file. $ echo $KOHA_CONF If you change the value to point to koha1's or koha2's xml configuration file, then that is the one that will get reindexed. That's my attempt at answering your question. I also want to point out an advantage of packages, which those older instructions which you followed don't refer to, since they are prior to 3.4.x when packages became widely available. "cd koha-3.02.01" is a major clue that those are old instructions. If you installed Koha on Debian using packages following these instructions: http://wiki.koha-community.org/wiki/Debian Then multiple instance creation and management is much easier by using the commands provided by packages: http://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_packages Particularly in this case: http://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_packages... http://wiki.koha-community.org/wiki/Commands_provided_by_the_Debian_packages... GPML, Mark Tompsett
Prefix the relevant environment variables to the command: PERL5LIB="/usr/share/*kohaX*/lib" KOHA_CONF="/etc/*kohaX*/koha-conf.xml" /usr/share/*kohaX*/bin/migration_tools/rebuild_zebra.pl <params> In our setup we have created wrapper scripts for handling this gracefully Regards To+ On Sat, Apr 20, 2013 at 7:28 AM, sunil sharma <koha.sunil007@gmail.com>wrote:
Hello all,
I installed koha 3.8.x multiple instances on a debian-squeeze server by refering this link: http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha. But I am facing problem in rebuilding zebra in multiple instances. Actually when I installed one instance for example koha1, it installed perfectly and rebuildzebra.pl work fine after uploading my database. After installing another instance say koha2, it also installed perfectly and rebuildzebra.plalso works fine. But now the problem is that, now if I again come at my first instance i.e. koha1, make rebuildzebra.pl command to run again, it takes database of my 2nd instance. This is because in zebra configuration file while rebuild zebra it show like this:-
Zebra configuration information ================================ Zebra biblio directory = /var/lib/*koha2*/zebradb/biblios Zebra authorities directory = /var/lib/*koha2*/zebradb/authorities Koha directory = /usr/share/*koha2*/intranet/cgi-bin
In place of *koha2*, this should take *koha1* in my first instance of koha, which is making wrong zebra rebuild and show me biblio of koha2 instance in koha1 instance.
How should I resolve this problem. Can Anyone help me in this regard?
Thanks in advance for your help,
Sunil _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On 2013-04-20, at 10:28 PM, sunil sharma wrote:
Hello all,
I installed koha 3.8.x multiple instances on a debian-squeeze server by refering this link: http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha .
use the debian packages, if you are attempting multiple instances of Koha... http://wiki.koha-community.org/wiki/Koha_3.x_on_Debian_Squeeze
Thanx a lot for all your valuable suggestions. Problem solved by exporting the variable for that particular instance. And making script to resolve that permanently. Sunil On Sun, Apr 21, 2013 at 6:53 AM, Mason James <mtj@kohaaloha.com> wrote:
On 2013-04-20, at 10:28 PM, sunil sharma wrote:
Hello all,
I installed koha 3.8.x multiple instances on a debian-squeeze server by refering this link:
http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha.
use the debian packages, if you are attempting multiple instances of Koha...
http://wiki.koha-community.org/wiki/Koha_3.x_on_Debian_Squeeze
participants (4)
-
Mark Tompsett -
Mason James -
sunil sharma -
Tomas Cohen Arazi