modperl and DBI or DBD with mysql

2006-02-03 Thread Derek Robson
I am new to the world of modperl. Any help would be nice. I have some perl code that runs fine from the command line but not with modperl. #!/usr/local/bin/perl use strict; use DBI; print "Content-type: text/plain\n\n"; print "check1"; # Connect to the database. my $dbh = DBI->connect("

Usage suggestions: caching DB metadata with mod_perl?

2006-02-03 Thread RJ Herrick
Hi all, I'm starting to do a lot of form processing, and came across the idea of caching table metadata while validating to avoid unnecessary DB (MySQL) calls. I just realized that, with mod_perl, I could even do this across requests- and since the data shouldn't be changing, this seems like a

Re: What handler am I ?

2006-02-03 Thread Geoffrey Young
Len Kranendonk wrote: >> my $callback = ModPerl::Util::current_callback(); > > > For a PerlOutputFilterHandler the current_callback() function returns > "PerlResponseHandler". > > That sounds like a bug, or am I doing something wrong ? more like a known about "feature." IIRC I tried to tra

Where is Your Apache2 Installed?

2006-02-03 Thread David Wheeler
Hi All, I want to create App::Info::HTTPD::Apache2 to complement App::Info::HTTPD::Apache. http://search.cpan.org/dist/App-Info/ The way it works is that it looks for an httpd executable. But I need to know where Apache2 is typically installed. So, please reply to me off list, if you h

Re: errors in module.t & others when installing mod_perl

2006-02-03 Thread Bennett Haselton
At 04:41 PM 2/3/2006 -0600, Frank Wiles wrote: On Fri, 03 Feb 2006 14:35:05 -0800 Bennett Haselton <[EMAIL PROTECTED]> wrote: > I also tried doing: > rpm -e mod_perl > and I got: > error: Failed dependencies: > mod_perl is needed by (installed) > psa-7.5.0-fc2.build75041208.20 > > I am

Re: errors in module.t & others when installing mod_perl

2006-02-03 Thread Frank Wiles
On Fri, 03 Feb 2006 14:35:05 -0800 Bennett Haselton <[EMAIL PROTECTED]> wrote: > I also tried doing: > rpm -e mod_perl > and I got: > error: Failed dependencies: > mod_perl is needed by (installed) > psa-7.5.0-fc2.build75041208.20 > > I am completely stuck again, sorry! Well you're tr

Re: errors in module.t & others when installing mod_perl

2006-02-03 Thread Bennett Haselton
At 06:30 PM 2/1/2006 -0800, Tyler MacDonald wrote: Bennett Haselton <[EMAIL PROTECTED]> wrote: > But, just to make sure, I tried doing it again -- ran the command > find /usr/lib/perl5 -name 'Apache2*' -exec rm -rf {} \; > to clean out those files, and then did > perl Makefile.PL MP_APXS=/usr/sbi

Re: What handler am I ?

2006-02-03 Thread Len Kranendonk
my $callback = ModPerl::Util::current_callback(); For a PerlOutputFilterHandler the current_callback() function returns "PerlResponseHandler". That sounds like a bug, or am I doing something wrong ? Server: Apache/2.0.54 (FreeBSD 6.0) mod_ssl/2.0.54 OpenSSL/0.9.7g mod_apreq2-20050712/2.1.

Re: httpd 2.2 vs. add_config

2006-02-03 Thread Torsten Foertsch
On Thursday 02 February 2006 23:14, Philippe M. Chiasson wrote: > > I suggest the patch below to solve the problem. > > Should be OPT_ALL instead of (~0), but it's a sane patch IMO. I almost agree, but it should read OPT_ALL|OPT_INCNOEXEC|OPT_SYM_OWNER|OPT_MULTI > Really, what's needed is some