I'm running Koha 2.2.9 on Debian Etch with Mysql 5.0. All works just fine. However, I need to set up a completely separate libarary for someone and need to host it on the same server. Question is, can you run multiple instances of Koha on the same server? I need the instances to be completely separate based on template customization needs. Scott Leafe
Hello Scott, Saturday, August 25, 2007, 7:58:59 AM, you wrote: SL> I'm running Koha 2.2.9 on Debian Etch with Mysql 5.0. All works just fine. SL> However, I need to set up a completely separate libarary for someone and need to SL> host it on the same server. Question is, can you run multiple instances of Koha SL> on the same server? I need the instances to be completely separate based on SL> template customization needs. yes.. on one server (virtual hosts), only perl code is the same: http://katalog.bg.szczecin.pl http://union.bg.szczecin.pl http://publi.bg.szczecin.pl -- <wojciech@zatorski.net> tel. +48 509-855-239; GG: 1500861; Skype: zatorski http://www.Zatorski.Net -- Be careful of reading health books, you might die of a misprint. -- Mark Twain
Thank you Wojciech. That does make sense. It did not seem to work with two installations of Koha on the same server, but I'll try the two vservers and sample perl code scenario to see how that works. I assume then that to customize for another library you just need to select a different template. Thanks again. ----- Original Message ----- From: "Wojciech Zatorski" <listy-in@zatorski.net> To: <koha@lists.katipo.co.nz> Sent: Saturday, August 25, 2007 6:17 AM Subject: Re: [Koha] Multiple Instances on same server
Hello Scott,
Saturday, August 25, 2007, 7:58:59 AM, you wrote:
SL> I'm running Koha 2.2.9 on Debian Etch with Mysql 5.0. All works just fine. SL> However, I need to set up a completely separate libarary for someone and need to SL> host it on the same server. Question is, can you run multiple instances of Koha SL> on the same server? I need the instances to be completely separate based on SL> template customization needs.
yes..
on one server (virtual hosts), only perl code is the same:
http://katalog.bg.szczecin.pl http://union.bg.szczecin.pl http://publi.bg.szczecin.pl
-- <wojciech@zatorski.net> tel. +48 509-855-239; GG: 1500861; Skype: zatorski http://www.Zatorski.Net -- Be careful of reading health books, you might die of a misprint. -- Mark Twain
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Wojceich, Unfortunately this is not working. This is what I have tried so far: 1) cp the koha-httpd.conf to xxkoha-httpd.conf 2) cp the koha.conf to xxkoha.conf and edit the database name to the new database to be used for new library. 3) modify the ports in the xxkoha-httpd.conf to something different like 70 and 7070 and change the SetEnv KOHA_CONF to "/etc/xxkoha.conf." I also changed the log file names on this new instance to make debugging easier. 4) So now I have two virtual hosts pointing to two different koha config files (and two different databases, of course), but both pointing to the same /usr/local/koha directory for all the application files. 5) restart apache2 and voila, the original library (both opac and admin) work just fine. But when trying to load the new library, it does not load the *.pl files but asks where I want to save them (i.e., opac-main.pl, etc). Not sure what I am doing wrong, but it's probably an easy fix. Any thoughts? I'm not a linux newbie, but this one is puzzling. Seems as thought the index.html redirect is getting confused on the second instance, but I'm not sure why. Scott ----- Original Message ----- From: "Wojciech Zatorski" <listy-in@zatorski.net> To: <koha@lists.katipo.co.nz> Sent: Saturday, August 25, 2007 6:17 AM Subject: Re: [Koha] Multiple Instances on same server
Hello Scott,
Saturday, August 25, 2007, 7:58:59 AM, you wrote:
SL> I'm running Koha 2.2.9 on Debian Etch with Mysql 5.0. All works just fine. SL> However, I need to set up a completely separate libarary for someone and need to SL> host it on the same server. Question is, can you run multiple instances of Koha SL> on the same server? I need the instances to be completely separate based on SL> template customization needs.
yes..
on one server (virtual hosts), only perl code is the same:
http://katalog.bg.szczecin.pl http://union.bg.szczecin.pl http://publi.bg.szczecin.pl
-- <wojciech@zatorski.net> tel. +48 509-855-239; GG: 1500861; Skype: zatorski http://www.Zatorski.Net -- Be careful of reading health books, you might die of a misprint. -- Mark Twain
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Wojceich, Unfortunately this is not working. This is what I have tried so far: 1) cp the koha-httpd.conf to xxkoha-httpd.conf 2) cp the koha.conf to xxkoha.conf and edit the database name to the new database to be used for new library. 3) modify the ports in the xxkoha-httpd.conf to something different like 70 and 7070 and change the SetEnv KOHA_CONF to "/etc/xxkoha.conf." I also changed the log file names on this new instance to make debugging easier. 4) So now I have two virtual hosts pointing to two different koha config files (and two different databases, of course), but both pointing to the same /usr/local/koha directory for all the application files. 5) restart apache2 and voila, the original library (both opac and admin) work just fine. But when trying to load the new library, it does not load the *.pl files but asks where I want to save them (i.e., opac-main.pl, etc). Not sure what I am doing wrong, but it's probably an easy fix. Any thoughts? I'm not a linux newbie, but this one is puzzling. Seems as thought the index.html redirect is getting confused on the second instance, but I'm not sure why. Scott ----- Original Message ----- From: "Wojciech Zatorski" <listy-in@zatorski.net> To: <koha@lists.katipo.co.nz> Sent: Saturday, August 25, 2007 6:17 AM Subject: Re: [Koha] Multiple Instances on same server
Hello Scott,
Saturday, August 25, 2007, 7:58:59 AM, you wrote:
SL> I'm running Koha 2.2.9 on Debian Etch with Mysql 5.0. All works just fine. SL> However, I need to set up a completely separate libarary for someone and need to SL> host it on the same server. Question is, can you run multiple instances of Koha SL> on the same server? I need the instances to be completely separate based on SL> template customization needs.
yes..
on one server (virtual hosts), only perl code is the same:
http://katalog.bg.szczecin.pl http://union.bg.szczecin.pl http://publi.bg.szczecin.pl
-- <wojciech@zatorski.net> tel. +48 509-855-239; GG: 1500861; Skype: zatorski http://www.Zatorski.Net -- Be careful of reading health books, you might die of a misprint. -- Mark Twain
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hello Scott, Saturday, August 25, 2007, 10:52:23 PM, you wrote: SL> Wojceich, SL> Unfortunately this is not working. This is what I have tried so far: SL> 1) cp the koha-httpd.conf to xxkoha-httpd.conf SL> 2) cp the koha.conf to xxkoha.conf and edit the database name to the new SL> database to be used for new library. SL> 3) modify the ports in the xxkoha-httpd.conf to something different like 70 SL> and 7070 and change the SetEnv KOHA_CONF to "/etc/xxkoha.conf." I also SL> changed the log file names on this new instance to make debugging easier. SL> 4) So now I have two virtual hosts pointing to two different koha config SL> files (and two different databases, of course), but both pointing to the SL> same /usr/local/koha directory for all the application files. SL> 5) restart apache2 and voila, the original library (both opac and admin) SL> work just fine. But when trying to load the new library, it does not load SL> the *.pl files but asks where I want to save them (i.e., opac-main.pl, etc). SL> Not sure what I am doing wrong, but it's probably an easy fix. Any SL> thoughts? I'm not a linux newbie, but this one is puzzling. Seems as SL> thought the index.html redirect is getting confused on the second instance, SL> but I'm not sure why. example (this is not real configuration because is using mod_perl): in /etc/httpd/conf.d: koha224_katalog.conf <VirtualHost *:80 *:8013> ServerAdmin root@bg.univ.szczecin.pl DocumentRoot /opt/koha224_katalog/opac/htdocs ServerName katalog.koha.bibl.univ.szczecin.pl ServerAlias katalog.bg.szczecin.pl ScriptAlias /cgi-bin/koha/ /opt/koha224_katalog/opac/cgi-bin/ SetEnv PERL5LIB "/opt/koha224_katalog/intranet/modules" SetEnv KOHA_CONF "/opt/koha224_katalog/koha.xml" Redirect permanent index.html http://katalog.bg.szczecin.pl/cgi-bin/koha/opac -main.pl ErrorLog /opt/koha224_katalog/log/opac-error_log TransferLog /opt/koha224_katalog/log/opac-access_log </VirtualHost> koha224_ped.conf: <VirtualHost *:80 *:8014> ServerAdmin root@bg.univ.szczecin.pl DocumentRoot /opt/koha224_ped/opac/htdocs ServerName pedagogika.koha.bibl.univ.szczecin.pl ServerAlias pedagogika.bg.szczecin.pl ScriptAlias /cgi-bin/koha/ /opt/koha224_ped/opac/cgi-bin/ SetEnv PERL5LIB "/opt/koha224_ped/intranet/modules" SetEnv KOHA_CONF "/opt/koha224_ped/koha.xml" Redirect permanent index.html http://pedagogika.bg.szczecin.pl/cgi-bin/koha/opac -main.pl ErrorLog /opt/koha224_ped/log/opac-error_log TransferLog /opt/koha224_ped/log/opac-access_log </VirtualHost> in /opt/ koha224_katalog --> intranet ----> cgi-bin -> /opt/koha224_szablon/intranet/cgi-bin (symlink!!) ----> data ----> htdocs ----> modules -> /opt/koha224_szablon/intranet/modules (symlink!!) ----> scripts -> /opt/koha224_szablon/intranet/scripts (symlink!!) --> log --> opac ----> cgi-bin -> /opt/koha224_szablon/opac/cgi-bin (symlink!!) ----> htdocs koha224_ped --> intranet ----> cgi-bin -> /opt/koha224_szablon/intranet/cgi-bin (symlink!!) ----> data ----> htdocs ----> modules -> /opt/koha224_szablon/intranet/modules (symlink!!) ----> scripts -> /opt/koha224_szablon/intranet/scripts (symlink!!) --> log --> opac ----> cgi-bin -> /opt/koha224_szablon/opac/cgi-bin (symlink!!) ----> htdocs koha224_szablon (where is the real perl code): --> intranet ----> cgi-bin ----> data ----> htdocs ----> modules ----> scripts --> log --> opac ----> cgi-bin ----> htdocs all clear? -- <wojciech@zatorski.net> tel. +48 509-855-239; GG: 1500861; Skype: zatorski http://www.Zatorski.Net -- Windows isn't crippleware: it's "Fuctionally Challenged"
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
"Scott Leafe" <skl51203@houston.rr.com> wrote:
Wojceich,
Did you mean to send this to the list?
[...] But when trying to load the new library, it does not load the *.pl files but asks where I want to save them (i.e., opac-main.pl, etc).
That seems to mean that both - you are using a recent apache AND - koha crashed. Check your opac-error_log file for clues. Often it's permission problems, but it could be a bug in koha itself (seems unlikely if the first library loads OK). Hope that helps, -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Experienced webmaster-developers for hire http://www.ttllp.co.uk/ Also: statistician, sysadmin, online shop builder, workers co-op. Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
Scott Leafe wrote:
I'm running Koha 2.2.9 on Debian Etch with Mysql 5.0. All works just fine. However, I need to set up a completely separate libarary for someone and need to host it on the same server. Question is, can you run multiple instances of Koha on the same server? I need the instances to be completely separate based on template customization needs.
A very clean solution uses linux vserver. It installs like a dream using Debian Etch. Vserver allows you to create multiple virtual guests on the one host. Each is "jailed" inside its own disk and copy of (most of) the operating system. We are running many instances of Koha in this way. An added benefit of using linux vserver is that each guest can have its own version of apache, its own mysql, its own version of Koha ... its own version of everything except the linux kernel which is shared. This allows you to create a guest for testing new versions and features in Koha without disturbing your production instances. cheers rickw -- _________________________________ Rick Welykochy || Praxis Services I didn't have time to write a short letter, so I wrote a long one instead. -- Mark Twain
participants (6)
-
Henri-Damien LAURENT -
MJ Ray -
Rick Welykochy -
Scott Leafe -
Scott Leafe -
Wojciech Zatorski