I have Koha 3.10.5 installed in Debian 6.0 x64. Now, I want to install another instance by following http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha, I was able to do until perl Makefile.PL but when I go 'make' part, I get -bash: make: command not found. That's in our working server. But when I tried it in local server with almost same config (Koha 3.10.5 - Debian 6.0), I was able to install another instance. What could be the problem with my working server? Thanks & have a nice day! -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848.html Sent from the Koha-general mailing list archive at Nabble.com.
Hi! I know this is not an answer to your question, but if you switch to the Debian packages*, adding another instance is as easy as "sudo koha-create --create-db <instancename>". :-) Best regards, Magnus Enger libriotech.no * = http://wiki.koha-community.org/wiki/Moving_an_installation_from_a_regular_in... On 18 June 2013 09:51, schnydszch <eugenegf@yahoo.com> wrote:
I have Koha 3.10.5 installed in Debian 6.0 x64. Now, I want to install another instance by following http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha, I was able to do until perl Makefile.PL but when I go 'make' part, I get -bash: make: command not found. That's in our working server. But when I tried it in local server with almost same config (Koha 3.10.5 - Debian 6.0), I was able to install another instance. What could be the problem with my working server? Thanks & have a nice day!
-- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848.html Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
schnydszch
http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha, I was able to do until perl Makefile.PL but when I go 'make' part, I get -bash: make: command not found. That's in our working server. [...]
Your working server doesn't have make installed. You could install the make package, but it may be better to install build-essential which should give all the other tools necessary for other steps. As others have pointed out, the koha-common package may be easier. Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. http://koha-community.org supporter, web and library systems developer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire (including development) at http://www.software.coop/
Thanks MJ. But I might be missing something. I'm trying koha-create --create-db instancename. The one I created point me to my first koha instance installation. I don't see /etc/koha_newinstancename, usr/share/koha_newinstancename, I should be seeing those right? A database is created koha_newinstancename. The document root in apache is still /usr/share/koha/opac/htdocs & /usr/share/koha/intranet/htdocs, used by my first Koha instance. I might be missing something? Thanks in advance! -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848p5759009.h... Sent from the Koha-general mailing list archive at Nabble.com.
Greetings,
But I might be missing something. I'm trying koha-create --create-db instancename. The one I created point me to my first koha instance installation.
Did you convert your regular install to a packages based install?
I don't see /etc/koha_newinstancename, usr/share/koha_newinstancename, I should be seeing those right?
/etc/koha/sites/instance_name/... This represents how the configuration files for each instance. As for /usr/share/koha_newinstancename: no. The source code for Koha doesn't change for a new instance, the database and the apache configuration does. The apache configuration will point at the configuration files for the given instance found in the directory I listed above.
A database is created koha_newinstancename.
Of course. :)
The document root in apache is still /usr/share/koha/opac/htdocs & /usr/share/koha/intranet/htdocs, used by my first Koha instance. I might be missing something?
Of course, because as I said, the source code doesn't change, only the configuration files (/etc/koha/sites/instance_name/...), the database, and the apache configuration files (/etc/apache2/sites-available/instance_name and /etc/apache2/sites-enabled/instance_name) Hopefully that makes some sense. Sorry if I have answered out of turn or incorrectly. :) GPML, Mark Tompsett
I got it already, hope I can redo what I did. :) This time through koha-create. I did what MJ said, I installed build-essential, I was able to make work the debian package. Did you convert your regular install to a packages based install? I can't recall, i tried http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha and when I can't make it work tried the debian package (koha-create). To and fro, just remove what i've created through koha-remove, re-configure apache (I'm using webmin by the way!) and got it EUGENE JOSE T. ESPINOZA Legislative Staff Officer II House of Representatives Legislative Library Services Congressional Library Bureau ________________________________ From: Mark Tompsett <mtompset@hotmail.com> To: schnydszch <eugenegf@yahoo.com> Cc: koha@lists.katipo.co.nz Sent: Wednesday, June 19, 2013 10:58 AM Subject: Re: [Koha] Koha multiple instance Greetings,
But I might be missing something. I'm trying koha-create --create-db instancename. The one I created point me to my first koha instance installation.
Did you convert your regular install to a packages based install?
I don't see /etc/koha_newinstancename, usr/share/koha_newinstancename, I should be seeing those right?
/etc/koha/sites/instance_name/... This represents how the configuration files for each instance. As for /usr/share/koha_newinstancename: no. The source code for Koha doesn't change for a new instance, the database and the apache configuration does. The apache configuration will point at the configuration files for the given instance found in the directory I listed above.
A database is created koha_newinstancename.
Of course. :)
The document root in apache is still /usr/share/koha/opac/htdocs & /usr/share/koha/intranet/htdocs, used by my first Koha instance. I might be missing something?
Of course, because as I said, the source code doesn't change, only the configuration files (/etc/koha/sites/instance_name/...), the database, and the apache configuration files (/etc/apache2/sites-available/instance_name and /etc/apache2/sites-enabled/instance_name) Hopefully that makes some sense. Sorry if I have answered out of turn or incorrectly. :) GPML, Mark Tompsett
Testing further. I have the first koha instance named hreplib and the second is hreplib1. In the Apache configuration I got two /usr/share/koha/opac/htdocs & usr/share/koha_test/opac/htdocs. So the first (hreplib) I have its Document Root to usr/share/koha/opac/htdocs and the second (hreplib1) usr/share/koha_test/opac/htdocs. When I change the Document Root of either through webmin, the other is also edited (e.g. when I edit Document Root for hreplib to usr/share/koha_test/opac/htdocs, hreplib2 gets also Document Root to usr/share/koha/opac/htdocs when in fact I did not edit it). Settings for hreplib1 is different from hreplib so I really need to set this setting. Hmmm.. -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848p5759018.h... Sent from the Koha-general mailing list archive at Nabble.com.
It seems, I was able to make it work with another server. The previous try following this http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha and this http://wiki.koha-community.org/wiki/Moving_an_installation_from_a_regular_in... got the better of me.It worked anyway with the second server. Now, my question before i proceed, I might mess up with a working Koha instance, is how to set up environment variable correctly I've set up only KOHA_CONF = /etc/koha/sites/test1/koha-conf.xml but for PERL5LIB and KOHA_CRON_PATH, i'm not confident with /usr/share/koha/lib and /usr/share/koha/bin/cronjobs respectively. I read here http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha to create a dummy file. Is there other ways to do it? I'm using webmin, is there a way to set it in webmin? could someone confirm or tell me how to do it. thanks and cheers! -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848p5759030.h... Sent from the Koha-general mailing list archive at Nabble.com.
Currently .deb and tarball installs differ a lot in terms of maintenance tasks and tools. Don't mix instructions for one and the other. Moving into a .deb install its a good thing. But it is worth evaluating and planning if you have live systems. If you still need to fix your problem with the tarball install please insist on that. We will help you without diverging from the original question you made. The instructions for multiple koha instances using tarball work flawlessly for us (a big university with 38 instances running on the same server). The problem you had had to do with the absence of the command 'make' for which MJ gave you the right answer. Regards To+ On Wed, Jun 19, 2013 at 7:35 AM, schnydszch <eugenegf@yahoo.com> wrote:
It seems, I was able to make it work with another server. The previous try following this http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Koha and this
http://wiki.koha-community.org/wiki/Moving_an_installation_from_a_regular_in... got the better of me.It worked anyway with the second server. Now, my question before i proceed, I might mess up with a working Koha instance, is how to set up environment variable correctly I've set up only KOHA_CONF = /etc/koha/sites/test1/koha-conf.xml but for PERL5LIB and KOHA_CRON_PATH, i'm not confident with /usr/share/koha/lib and /usr/share/koha/bin/cronjobs respectively. I read here http://wiki.koha-community.org/wiki/Installing_Multiple_Instances_of_Kohato create a dummy file. Is there other ways to do it? I'm using webmin, is there a way to set it in webmin? could someone confirm or tell me how to do it. thanks and cheers!
-- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848p5759030.h... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Greetings,
Now, my question before i proceed, I might mess up with a working Koha instance, is how to set up environment variable correctly I've set up only KOHA_CONF = /etc/koha/sites/test1/koha-conf.xml but for PERL5LIB and KOHA_CRON_PATH, i'm not confident with /usr/share/koha/lib and /usr/share/koha/bin/cronjobs respectively.
You should notice in your apache configuration files that there is SetEnv KOHA_CONF=... SetEnv PERL5LIB=... And they differ for the two instances. That is why your two instances work. As for the cronjobs, I'll let someone else answer. I believe you can pass paths and such before calling the script. I just don't recall how off the top of my head. And lastly, tcohen was most definitely correct in not mixing instructions between a packages installation (.deb) and a tarball installation. Where the files end up configured differ, though if you are familiar enough with the files, you should be able to figure out the mapping between the two in your head. This, however, is not advised. GPML, Mark Tompsett
further reading and googling :) Using the debian package, /usr/share/koha is shared file for the instances. so for PERL5LIB, it's /usr/share/koha/lib. and Koha cron jobs /usr/share/koha/bin/cronjobs as far as my koha installation is concern, that's the environment variable for my working koha installation # 1. No. 2) I can see in /etc/apache2/sites-available/test1 SetEnv KOHA_CONF "/etc/koha/sites/test1/koha-conf.xml" I can't seem to see SetEnv PERL5LIB=. Is this what you mean apache configuration files, the one in /etc/apache2/sites-available/test1? Cheers! -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848p5759101.h... Sent from the Koha-general mailing list archive at Nabble.com.
schnydszch schreef op wo 19-06-2013 om 20:01 [-0700]:
further reading and googling :) Using the debian package, /usr/share/koha is shared file for the instances. so for PERL5LIB, it's /usr/share/koha/lib. and Koha cron jobs /usr/share/koha/bin/cronjobs as far as my koha installation is concern, that's the environment variable for my working koha installation # 1.
It still sounds like you're mixing up package and tarball instructions. When using the packages you never have to mess around with PERL5LIB, it does it all for you. It also will be the same for every Koha instance. The only thing that is different is the KOHA_CONF variable. For the packages, all code is shared, and all environment setup is done for you. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
So when I edit the css files of the first Koha instance in /usr/share/koha, css of the second Koha instance inherit it? Because it's shared? That's what I experience in my first server because we had some modifications on the css file. In the second server, since there were no modifications in the css, I got the default interface. Thanks & have a nice day! -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848p5759106.h... Sent from the Koha-general mailing list archive at Nabble.com.
schnydszch schreef op wo 19-06-2013 om 22:50 [-0700]:
So when I edit the css files of the first Koha instance in /usr/share/koha, css of the second Koha instance inherit it? Because it's shared?
If you use the packages, yes, all instances share the same CSS. I'd recommend not editing the CSS anyway as it'll get overwritten when you next upgrade. Instead create a new file that overrides the parts of the stock one that you want to change, and include that through a system preference. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
Thanks Robin, that was (our) mistake, it should have been done in the system preferences in the case of the first server. Anyway, it was just a try on Koha multiple instances in one server and learnt a lot from it. Cheers! -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-multiple-instance-tp5758848p5759125.h... Sent from the Koha-general mailing list archive at Nabble.com.
participants (7)
-
eugene jose espinoza -
Magnus Enger -
Mark Tompsett -
MJ Ray -
Robin Sheat -
schnydszch -
Tomas Cohen Arazi