ORMs under mod_perl

2006-05-17 Thread Jonathan
i'm running really behind schedule on something, so i need to use an ORM to get it off the ground quick ( i generally hate them and prefer pure sql) doing some searches online, I found some issues with mod_perl and Class::DBI from about a year ago -- does anyone know if they're still aro

Re: apache url mapping question

2006-05-17 Thread Jeff Nokes
How about something like the following? # mod_perl 1.29 Configuration: # Set up apache so that all pages served with a .pl or .pm extension will be executed # via the mod_perl package which is statically linked in with Apache. SetHandler perl-script P

Re: apache url mapping question

2006-05-17 Thread John ORourke
Hi Jonathan, two examples which I think are right, comments please folks! Jonathan Vanasco wrote: i need to get the following urls mapped onto a handler in httpd.conf / /index /index.* Option 1: SetHandler perl-script PerlResponseHandler My::Module Option 2:

apache url mapping question

2006-05-17 Thread Jonathan Vanasco
this isn't necessarily a mod_perl question, but it is for a mod_perl app, and I'm using mp to generate the location directives in apache i need to get the following urls mapped onto a handler in httpd.conf / /index /index.* i thought about something like this i'm thin

Re: Runaway CPU/memory on MP2 after Oracle upgrade

2006-05-17 Thread Thomas Hilbig
--- [EMAIL PROTECTED] wrote: > I don't use Apache::DBI(maybe I should) and use > DBD-Oracle however the > error looks very familar - > > Quick fix : - vi /etc/ld.so.conf and add the oracle > lib path. > - run ldconfig > > I set my ORACLE_HOME etc in httpd.conf. > > David K

Re: Runaway CPU/memory on MP2 after Oracle upgrade

2006-05-17 Thread Thomas Hilbig
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Wed, 2006-05-17 at 09:06 -0700, Thomas Hilbig > wrote: > > If I try to run the > > environment under Mod_Perl (PerlResponseHandler > > ModPerl::Registry), the httpd process consumes all > CPU > > and all memory when I visit the first CGI page >

Re: Runaway CPU/memory on MP2 after Oracle upgrade

2006-05-17 Thread Thomas Hilbig
--- Frank Wiles <[EMAIL PROTECTED]> wrote: > On Wed, 17 May 2006 09:06:07 -0700 (PDT) > Thomas Hilbig <[EMAIL PROTECTED]> wrote: > > > install_driver(Oracle) failed: Can't load > > > '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' > > for module DBD::Oracle: lib

Re: Runaway CPU/memory on MP2 after Oracle upgrade

2006-05-17 Thread Perrin Harkins
On Wed, 2006-05-17 at 09:06 -0700, Thomas Hilbig wrote: > If I try to run the > environment under Mod_Perl (PerlResponseHandler > ModPerl::Registry), the httpd process consumes all CPU > and all memory when I visit the first CGI page that > uses DBI. [...] > The same problem occurs if I change my D

Re: building modperl2.0.2 on rocks cluster 4.1

2006-05-17 Thread Perrin Harkins
On Wed, 2006-05-17 at 18:42 +0200, Simon Zimmer wrote: > Where is the difference between rpmbuild that uses mod_perl.spec and the > standard way using perl Makefile.PL? Oh, I'm sorry, I forgot that there's now an RPM spec file in the distribution. I haven't used it myself, so I'd better leave th

Re: [mp2] accessing the config of another module

2006-05-17 Thread Frank Wiles
On Wed, 17 May 2006 12:42:02 -0400 Geoffrey Young <[EMAIL PROTECTED]> wrote: > if it's custom directives in httpd.conf you want, see this > > http://www.modperlcookbook.org/~geoff/modules/experimental/Apache-Template-2.00_01.tar.gz > > and some of the other Apache2 modules on CPAN. If you fi

Re: building modperl2.0.2 on rocks cluster 4.1

2006-05-17 Thread Simon Zimmer
Hi, You'd better ask the vendor of "rocks cluster 4.1" that question. We didn't build these packages and don't know anything about them. If you'd like to build mod_perl yourself from source instead, there is plenty of documentation at http://perl.apache.org/. that's what i have done. I build

Re: [mp2] accessing the config of another module

2006-05-17 Thread Geoffrey Young
Charles Bueche wrote: > Hi Geoffrey, > > I own your book, and wasn't aware of this recipe. there's lots of stuff in there people just don't know about :) > > I find this method a bit complicated, until now, my module was pure > perl. But if this is the only way... > yeah, it pretty much is.

Re: Runaway CPU/memory on MP2 after Oracle upgrade

2006-05-17 Thread Frank Wiles
On Wed, 17 May 2006 09:06:07 -0700 (PDT) Thomas Hilbig <[EMAIL PROTECTED]> wrote: > install_driver(Oracle) failed: Can't load > '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' > for module DBD::Oracle: libclntsh.so.10.1: cannot open > shared object file: No such

Re: [mp2] accessing the config of another module

2006-05-17 Thread Charles Bueche
Hi Geoffrey, I own your book, and wasn't aware of this recipe. I find this method a bit complicated, until now, my module was pure perl. But if this is the only way... Thanks anyway for your hint. BTW : do you prepare a 2.x version of the cookbook ? I find it a great resource, I learned a lot f

Re: building modperl2.0.2 on rocks cluster 4.1

2006-05-17 Thread Perrin Harkins
On Wed, 2006-05-17 at 15:49 +0200, Simon Zimmer wrote: > error: Failed dependencies: > perl(Apache2::FunctionTable) is needed by mod_perl-2.0.2-1.x86_64 > perl(Apache2::StructureTable) is needed by mod_perl-2.0.2-1.x86_64 > perl(Apache::TestConfigParse) is needed by mod_perl-2.0.2-1.x86_64 > per

Runaway CPU/memory on MP2 after Oracle upgrade

2006-05-17 Thread Thomas Hilbig
I'm stuck! I have two systems (production and backup/development) running Fedora Core 3, MP2 and Oracle 10g. Both systems are behind in several updates. I updated the backup/development system's kernel, httpd/mp2, and Perl modules to the latest and greatest. Everything worked fine at that point.

building modperl2.0.2 on rocks cluster 4.1

2006-05-17 Thread Simon Zimmer
Hi, when i try to build an rpm with the command: rpmbuild -ta mod_perl-2.0.2.tar.gz everthing works fine without any error, but when i try to install it, i get the following failed dependencies: error: Failed dependencies: perl(Apache2::FunctionTable) is needed by mod_perl-2.0.2-1.x86_64 per

Re: [mp2] accessing the config of another module

2006-05-17 Thread Geoffrey Young
Charles Bueche wrote: > Hi, > > I have a C module loaded and working. It's an access_handler. It has its > own configuration directives, which I can use in the global section of > httpd.conf or in a vhost section. > > Beside, in a perl module I write (a fixup handler), I would like to > access th

[mp2] accessing the config of another module

2006-05-17 Thread Charles Bueche
Hi, I have a C module loaded and working. It's an access_handler. It has its own configuration directives, which I can use in the global section of httpd.conf or in a vhost section. Beside, in a perl module I write (a fixup handler), I would like to access the configuration values of the C module