Dear folks,

I am installing and setting up a RH 6.1 system with (quoting
/var/log/httpd/error_log):
Apache/1.3.9 (Unix) mod_ssl/2.4.6 OpenSSL/0.9.4 mod_perl/1.21 configured

When I put use Apache::DBI (); into my startup.pl, or PerlModule
Apache::DBI into my perl.conf, then httpd stops with a sementation
fault.  I can send the end of my strace httpd -X if that will help.  I
have used perl -MCPAN -e shell to install Bundle::Apache and
Bundle::DBI.  I have installed DBD::Pg for our postreSQL 6.5.2 server.

Can anyone help me to understand what I am doing wrong, or what I can do
to use Apache::DBI and still have the system work?  The other simple
Apache Perl modules I have installed work so far.

startup.pl:

#!/usr/bin/perl -w
BEGIN {
    use Apache ();
    use lib "/home/httpd/lib";
}

use Apache::Registry ();
use Apache::Constants();
use CGI qw(-compile :all);
use CGI::Carp ();
# Caused Daniel's (and this!) httpd to dump core!
# use Apache::DBI ();

1;

perl.conf:
PerlFreshRestart        On
PerlSetVar              StatINCDebug On
PerlWarn                On
PerlTaintCheck          On
# PerlModule              Apache::DBI


<Location /perl-status>
    SetHandler perl-script
    PerlHandler Apache::Status
</Location>

# All Apache modules that I write go under /home/httpd/lib/Apache
# and have the extension .pm.  For instance, if I write a module with
the
# name Apache::TestModule, then I will save it as
# /home/httpd/lib/Apache/TestModule.pm

<Location "/hello">
    SetHandler perl-script
    PerlHandler Apache::TestModule
</Location>

Please write to me directly.

--
Nick Urbanik, Dept. of Electrical & Communications Engineering
Hong Kong Institute of Vocational Education (Tsing Yi)
email: [EMAIL PROTECTED], [EMAIL PROTECTED]
Tel:   (852) 2436 8660, (825) 2436 8674   Fax: (852) 2436 8643
pgp ID: 7529555D fingerprint: 53 B6 6D 73 52 EE 1F EE EC F8 21 98 45 1C 23 7B


Reply via email to