mp2.0 w/Apache 2.0, DBI setup??

2002-11-18 Thread Robert Kohler
I am having difficulty getting Apache 2.0.43, perl 5.6.1, and mod_perl 
1.99_07
to work together.

Trying to authenticate users based on a MySQL table.

All compiles and installs.

I installed Apache-DBI-0.89 perl module.

In configuring, I keep getting Seg faults.  Can someone let me know if 
I am even setting up the config file correctly for Apache.  Seems I have 
searched all the archives, and keep getting conflicting information...

In httpd.conf
--- ADDED THE FOLLOWING 
LoadModule perl_module modules/mod_perl.so

PerlRequire /home/apps/httpd-2.0.43/perl/startup.pl

#PerlModule Apache2
PerlModule Apache::DBI
#PerlModule Apache::AuthDBI


My startup.pl files looks like:

use Apache2 ();

use lib qw(/home/apps/httpd-2.0.43/perl);

# enable if the mod_perl 1.0 compatibility is needed
use Apache::compat ();

use ModPerl::Util (); #for CORE::GLOBAL::exit

use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();

use Apache::Server ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();

use APR::Table ();

use ModPerl::Registry ();

use Apache::Const -compile = ':common';
use APR::Const -compile = ':common';

1;
---

Did I miss something obvious?  When I start apache, it seg faults.
Commenting out all the PerlModule defs in httpd.conf allows the server
to start?
How can you get the compat mode working with the DBI modules, or do we 
even need
the compat mod_perl modules?

If All seems correct, then I will recompile everything with debugging!!

Robert



Re: mp2.0 w/Apache 2.0, DBI setup??

2002-11-18 Thread Robert Kohler
Randy Kobes wrote:


On Mon, 18 Nov 2002, Robert Kohler wrote:

 

I am having difficulty getting Apache 2.0.43, perl 5.6.1, and mod_perl 
1.99_07
to work together.

Trying to authenticate users based on a MySQL table.

All compiles and installs.

I installed Apache-DBI-0.89 perl module.

In configuring, I keep getting Seg faults.  Can someone let me know if 
I am even setting up the config file correctly for Apache.  Seems I have 
searched all the archives, and keep getting conflicting information...
   


Are you using the latest versions of DBI and DBD::mysql? If
not, does this still happen with the latest versions?

 

DBI 1.21
DBD::mysql 2.0.11

Note the most current, but I can't modify this as it is in production 
currently.  I can try testing
on a completely different system if need be.