<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Bernard, but in order for Context.pm to establish which conf
file to use, it has to be read. Currently, requests to the second site
are still going to the first sites Context.pm file. I'm investigating
my httpd.conf file and the includes and looking at options there. It's
those instructions that are supposed to direct traffic to the proper
path.<br>
<br>
Any thoughts that help me get that traffic redirected would be helpful<br>
<div class="moz-signature">
<meta http-equiv="CONTENT-TYPE" content="text/html; ">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 2.0  (Win32)">
<meta name="CREATED" content="20061002;17015100">
<meta name="CHANGEDBY" content="Dan Foote">
<meta name="CHANGED" content="20061220;1243142">
<style>
        <!--
                @page { size: 8.5in 11in; margin: 0.79in }
        -->
        </style>
<p align="left"><font color="#000080"><b><font face="Agency FB">Dan
Foote</font></b> <br>
</font><a href="http://www.dantech-services.com/"><font color="#000080"><br>
</font></a></p>
</div>
Bernard Shiundu wrote:
<blockquote cite="mid:1173111873.6842.39.camel@localhost.localdomain"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="GENERATOR" content="GtkHTML/3.12.1">
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 =&gt; "/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 moz-do-not-send="true" href="http://www.dantech-services.com/">&lt;http://www.dantech-services.com/&gt;</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? &lt;br&gt; <br>
&lt;br&gt; <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. &lt;br&gt; <br>
&lt;br&gt; <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.&amp;nbsp; With
this, I <br>
reviewed the Context.pm file and set the "use constant CONFIG_FNAME <br>
=&amp;gt; "/etc/koha.conf";" statement to "use constant CONFIG_FNAME
=&amp;gt; <br>
"/etc/koha-2.conf";" (the name of my second config file). &lt;br&gt; <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 moz-do-not-send="true" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a>
      <br>
      <a moz-do-not-send="true"
 href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>
    </blockquote>
  </blockquote>
</blockquote>
</body>
</html>