perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir S. Tikhonjuk" <...@vst.donetsk.ua>
Subject Re: Apache::DBI->connect_on_init
Date Wed, 02 Aug 2006 06:15:46 GMT
Well, I installed last versions of Apache ( 2.0.58 ), DBI ( 1.50 ),
Apache-DBI ( 1.01 ) and mod_perl ( 2.0.2 ).

Here is my stutup file:

# Start of apache-dbi-startup.pl

use Apache::DBI;
use DBI;

$Apache::DBI::DEBUG = 1;

Apache::DBI->connect_on_init(
  "dbi:Pg:dbname=database;host=localhost",
  "user",
  "pass",
  {
    PrintError => 1,
    RaiseError => 1,
    AutoCommit => 0
  }
);

1;

# END of apache-dbi-startup.pl

Here is my httpd.conf:

PerlRequire "/etc/apache2/modules.d/apache-dbi-startup.pl"

Apache starts without errors, but there are not any connection to
Database. What's wrong ?

Mime
View raw message