Re: MP2 - DBI Problem only under mod_perl: OCIEnvNlsCreate (check ORACLE_HOME and NLS settings)

2005-09-06 Thread Philip M. Gollucci
Thomas Hilbig wrote: $ENV{ORACLE_HOME}='/home/oracle/product/10.2.0/db_1'; $ENV{'ORACLE_SID'}="tomdb1"; $ENV{'LD_LIBRARY_PATH'}="/home/oracle/product/10.2.0/db_1/lib"; $ENV{'LD_ASSUME_KERNEL'} = "2.4.1" ; $ENV{'LD_PRELOAD'} = "/usr/lib/libInternalSymbols.so" ; $ENV{'NLS_LANG'}= "AMERI

Re: MP2 - DBI Problem only under mod_perl: OCIEnvNlsCreate (check ORACLE_HOME and NLS settings)

2005-09-06 Thread Thomas Hilbig
--- Praveen Ray <[EMAIL PROTECTED]> wrote: > --- Perrin Harkins <[EMAIL PROTECTED]> wrote: > > > On Tue, 2005-09-06 at 06:23 -0700, Thomas Hilbig > wrote: > > > I am struggling with a (simple?) DBI problem > under MP2 > > > on Fedora Core 3. A script that uses Oracle-DBI > works > > > under reg

Re: [PATCH] Apache2::SizeLimit + Linux::Smaps

2005-09-06 Thread Philip M. Gollucci
Torsten Foertsch wrote: Hi, this patch introduces $Apache2::SizeLimit::USE_SMAPS which is 1 by default. If /proc/PID/smaps are not available Apache::SizeLimit resets it to 0 itself. It can be reset by the user if he prefers using /proc/PID/statm before the first size check. If $USE_SMAPS is

Re: mod_perl for Koha Library System

2005-09-06 Thread Philip M. Gollucci
Joshua Ferraro wrote: I'll hunt down Geoff's emails and check the headers again, though I suspect that the problem is Koha-related rather than a problem with mod_perl. If thats indeed the problem, you could always add print "Content-Type: text/html\n\n"; near the top of that cgi. -- END --

Re: mod_perl for Koha Library System

2005-09-06 Thread Joshua Ferraro
Perrin et al, Thanks for the help thusfar. I upgraded MP2 to 2.0.1 from source. I'm still getting the same problems with statuses not working and header errors. Here's a snip from the log: [Tue Sep 06 17:10:12 2005] [error] [client 192.168.2.59] malformed header from script. Bad header=40069: ci

Re: mod_perl for Koha Library System

2005-09-06 Thread Perrin Harkins
On Tue, 2005-09-06 at 12:40 -0700, Joshua Ferraro wrote: > > GET /path HTTP/1.0\n\n > > And look > Hmm ... unfortunately this won't work as there's a whole > authentication framework to get past ... Unless you're using SSL, it will work fine. You'd have to learn what to type in though. It's easi

Re: mod_perl for Koha Library System

2005-09-06 Thread Philip M. Gollucci
Joshua Ferraro wrote: Yep I read the link. However, I think the only code I'll need to change will be the mod_perl_startup.pl that I call from my conf file (as well as some lines in the conf file) as I didn't really add any mod_perl specific code to Koha. Does this sound right? Very possibly yes

Re: mod_perl for Koha Library System

2005-09-06 Thread Joshua Ferraro
On Tue, Sep 06, 2005 at 03:43:55PM -0400, Philip M. Gollucci wrote: > Probably, You did read that link right, you'll have to modify code when you > update. Yep I read the link. However, I think the only code I'll need to change will be the mod_perl_startup.pl that I call from my conf file (as well

Re: mod_perl for Koha Library System

2005-09-06 Thread Philip M. Gollucci
Joshua Ferraro wrote: Hmm ... unfortunately this won't work as there's a whole authentication framework to get past ... any other suggestions? ;-) You might try LWP or just looking through the code. my OS package management system reports that I'm running mod_perl 1.99_16-3 (running Fedora Cor

Re: mod_perl for Koha Library System

2005-09-06 Thread Joshua Ferraro
On Tue, Sep 06, 2005 at 03:09:21PM -0400, Philip M. Gollucci wrote: > Joshua Ferraro wrote: > >turned on already. How do I check if a header's getting sent > The easiest is just telnet localhost 80 > GET /path HTTP/1.0\n\n > And look Hmm ... unfortunately this won't work as there's a whole authent

Re: mod_perl for Koha Library System

2005-09-06 Thread Philip M. Gollucci
Joshua Ferraro wrote: turned on already. How do I check if a header's getting sent The easiest is just telnet localhost 80 GET /path HTTP/1.0\n\n And look use Apache2 (); Ew... your mp2 is way old. You should update, http://perl.apache.org/docs/2.0/rename.html -- END --

Re: mod_perl for Koha Library System

2005-09-06 Thread Joshua Ferraro
Hi Philip, Thanks for the speedy response. I belive I've got +ParseHeaders turned on already. How do I check if a header's getting sent (note that the log message complains that one isn't: [Tue Sep 06 14:51:59 2005] [error] [client 192.168.3.50] malformed header from script. Bad header=31583: cir

Re: mod_perl for Koha Library System

2005-09-06 Thread Philip M. Gollucci
[Tue Sep 06 13:42:09 2005] [error] [client 192.168.2.111] malformed header from script. Bad header=22994: circulation.pl, referer: /cgi-bin/koha/circ/circulation.pl [Tue Sep 06 13:42:09 2005] [warn] /cgi-bin/koha/circ/circulation.pl did not send an HTTP header I assume this is running under Mo

mod_perl for Koha Library System

2005-09-06 Thread Joshua Ferraro
Hi all, I'm in the process of testing Koha (http://koha.org) with mod_perl and I'm running into a couple of snags. I get the following errors in the logs: [Tue Sep 06 13:42:09 2005] [error] [client 192.168.2.111] malformed header from script. Bad header=22994: circulation.pl, referer: /cgi-bin

Re: MP2 - DBI Problem only under mod_perl: OCIEnvNlsCreate (check ORACLE_HOME and NLS settings)

2005-09-06 Thread Praveen Ray
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Tue, 2005-09-06 at 06:23 -0700, Thomas Hilbig wrote: > > I am struggling with a (simple?) DBI problem under MP2 > > on Fedora Core 3. A script that uses Oracle-DBI works > > under regular CGI but fails under MP2 with the > > following error: > >

Re: MP2 - DBI Problem only under mod_perl: OCIEnvNlsCreate (check ORACLE_HOME and NLS settings)

2005-09-06 Thread Perrin Harkins
On Tue, 2005-09-06 at 06:23 -0700, Thomas Hilbig wrote: > I am struggling with a (simple?) DBI problem under MP2 > on Fedora Core 3. A script that uses Oracle-DBI works > under regular CGI but fails under MP2 with the > following error: > > ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS > set

Re: Reverse proxy

2005-09-06 Thread Jonathan Vanasco
On Sep 6, 2005, at 11:33 AM, Perrin Harkins wrote: Two separate instances with mod_perl 1 or mod_perl 2 in prefork MPM. It may be possible to set up pooling of interpreters to get a similar benefit without multiple servers when using mod_perl 2 with threads, but I haven't tried this. To

Re: a faster html::template?

2005-09-06 Thread Perrin Harkins
On Fri, 2005-09-02 at 10:53 +0800, Foo Ji-Haw wrote: > I'm a happy user of HTML::Template on my mp2 setup. But when it comes > to performance, I notice that to populate a loop of some 1500 records, > the system takes 2-3 seconds on my P4 2GHz machine. Populating the loop happens before running HTM

Re: a faster html::template?

2005-09-06 Thread Perrin Harkins
On Mon, 2005-09-05 at 06:42 -0700, Praveen Ray wrote: > XSLT transforms are VERY fast Compared to what? Certainly not compared to HTML::Template. - Perrin

Re: Reverse proxy

2005-09-06 Thread Perrin Harkins
On Tue, 2005-09-06 at 16:37 +0200, Denis Banovic wrote: > Do you have to run 2 instances of apache when you want to profit from > the reverse proxy configuration? > Or is it enough to have 2 different Virtual Server running? Two separate instances with mod_perl 1 or mod_perl 2 in prefork MPM. It

Re: MP2 - DBI Problem only under mod_perl: OCIEnvNlsCreate (check ORACLE_HOME and NLS settings)

2005-09-06 Thread Philip M. Gollucci
Thomas Hilbig wrote: Hi, I am struggling with a (simple?) DBI problem under MP2 on Fedora Core 3. A script that uses Oracle-DBI works under regular CGI but fails under MP2 with the following error: httpd: 2.0.54 MP2: 2.0.1 Fedora Core 3: 2.6.12-1.1376_FC3 Oracle: 10g Release 2 (10.2.0) D

Reverse proxy

2005-09-06 Thread Denis Banovic
Hi everybody! I have a simple reverse proxy question that might be slightly off topic and I apologise for that! Do you have to run 2 instances of apache when you want to profit from the reverse proxy configuration? Or is it enough to have 2 different Virtual Server running? Thanks Denis Here i

MP2 - DBI Problem only under mod_perl: OCIEnvNlsCreate (check ORACLE_HOME and NLS settings)

2005-09-06 Thread Thomas Hilbig
Hi, I am struggling with a (simple?) DBI problem under MP2 on Fedora Core 3. A script that uses Oracle-DBI works under regular CGI but fails under MP2 with the following error: ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS settings etc.) My test script dumps out the environment varables an

Re: Apache::Test not finding global config file

2005-09-06 Thread William McKee
On Wed, Aug 31, 2005 at 06:19:10PM -0400, Geoffrey Young wrote: > if you can do me the favor of trying a few different configuration scenarios > (including 1.3, non-apxs, /usr/local/apache, etc) and making sure nothing > breaks, that would be great. the box where my matrix used to live had a > har