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

Reply via email to