<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#ffffff">
On Sun, 2007-03-04 at 14:50 -0900, Dan Foote - DTS wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
Here's what I know now. If I move the Context.pm file in the original installation to a new name, like Context.pm.orig, the error changes to a "Can't locate C4/Context.pm" error. This tells me that the installation is not looking at the correct path to the new installation. It doesn't appear that the SetEnv and/or ScriiptAlias functions in my httpd include file for the second installation are being used.<BR>
<BR>
Regardless of what I've done, my second installation wants to use the first installations koha.conf file. Once again, that four letter word comes to mind: HELP!
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<B><FONT COLOR="#000080">Dan Foote</FONT></B><FONT COLOR="#000080"> </FONT><BR>
<BR>
<BR>
</BLOCKQUOTE>
In addition to <BR>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE TYPE=CITE>
In your httpd.conf <BR>
For the second Koha do you have SetEnv KOHA_CONF "/etc/koha-2.conf" <BR>
<BR>
Instead of SetEnv KOHA_CONF "/etc/koha.conf" <BR>
<BR>
Chris <BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
also change the line "use constant CONFIG_FNAME => "/etc/koha.conf"; (line 97 I think) in context.pm for the second install to read the path to your alternate Koha.conf. <BR>
And SetEnv PERL5LIB in httpd.conf for the second instance should also point to "/path to koha2/intranet/modules"<BR>
<BR>
Bernard
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
Dan Foote - DTS wrote: <BR>
<BLOCKQUOTE TYPE=CITE>
Chris, <BR>
Here's what I get in the error logs (either Koha or Opac): <BR>
read_config_file(/etc/koha.conf) returned undef at /usr/lib/perl5/5.8.7/C4/Context.pm line 229. <BR>
<BR>
This is after I have the following in the httpd include file: <BR>
SetEnv KOHA_CONF /etc/koha-2.conf <BR>
<BR>
And my export of: <BR>
export KOHA_CONF=/etc/koha-httpd-2.conf <BR>
<BR>
With my original post, I'd SetEnv to KOHA_2_CONF and added that to the Context.pm file for that site with the koha-2.conf path. I even went as far as changing the "use C4:Context ("/etc/koha-2.conf"); " statement into the *.pm files of modules/C4. <BR>
<BR>
I've now reverted to what you've suggested and I still get the above error that points to the /etc/koha.conf file of the first installation. <BR>
*Dan Foote* * <BR>
* <A HREF="http://www.dantech-services.com/"><http://www.dantech-services.com/></A> <BR>
<BR>
<BR>
<BR>
Chris Cormack wrote: <BR>
<BLOCKQUOTE TYPE=CITE>
On Sat, Mar 03, 2007 at 05:37:31PM -0900, Dan Foote - DTS said: <BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
Can somebody please give me some information on how to go about putting <BR>
more than one Koha site on the same server? <br> <BR>
<br> <BR>
I do have an installation up and running. I created a second <BR>
installation using different ports for both the intranet and opac <BR>
sides. Two config files for each site have also been created with <BR>
different names, appropriate paths, db info, permissions, etc. Web <BR>
server listens and responds on the assigned ports. <br> <BR>
<br> <BR>
I can watch both the koha and opac error logs and see where I fail, <BR>
which always appears to be in relation to C4::Context.&nbsp; With this, I <BR>
reviewed the Context.pm file and set the "use constant CONFIG_FNAME <BR>
=&gt; "/etc/koha.conf";" statement to "use constant CONFIG_FNAME =&gt; <BR>
"/etc/koha-2.conf";" (the name of my second config file). <br> <BR>
<BR>
</BLOCKQUOTE>
<BR>
In your httpd.conf <BR>
<BR>
For the second Koha do you have SetEnv KOHA_CONF "/etc/koha-2.conf" <BR>
<BR>
Instead of SetEnv KOHA_CONF "/etc/koha.conf" <BR>
<BR>
Chris <BR>
<BR>
</BLOCKQUOTE>
_______________________________________________ <BR>
Koha mailing list <BR>
<A HREF="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</A> <BR>
<A HREF="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</A>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BODY>
</HTML>