[Wed Oct 12 22:13:18 2005] [notice] Apache/1.3.33 (Debian GNU/Linux) mod_ssl/2.8.24 OpenSSL/0.9.7g mod_perl/1.29 configured -- resuming nor
mal operations
[Wed Oct 12 22:13:18 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Wed Oct 12 22:13:18 2005] [error] Can't connect to data source Pg:dbname='rodneyd', no database driver specified and DBI_DSN env var not s
et at /usr/local/share/perl/5.8.7/Apache/DBI.pm line 146\n
[Wed Oct 12 22:13:18 2005] [error] Can't connect to data source Pg:dbname='rodneyd', no database driver specified and DBI_DSN env var not s
et at /usr/local/share/perl/5.8.7/Apache/DBI.pm line 146\n
[Wed Oct 12 22:13:18 2005] [error] Can't connect to data source Pg:dbname='rodneyd', no database driver specified and DBI_DSN env var not s
et at /usr/local/share/perl/5.8.7/Apache/DBI.pm line 146\n
[Wed Oct 12 22:13:18 2005] [error] Can't connect to data source Pg:dbname='rodneyd', no database driver specified and DBI_DSN env var not set at /usr/local/share/perl/5.8.7/Apache/DBI.pm line 146\n
####
PerlModule Apache::DBI
PerlModule Apache::Session::Postgres
PerlModule Apache::Cookie
PerlRequire /etc/apache-perl/db.pl
####
my $dsn = 'rodneyd';
my $usn = 'postgres';
Apache::DBI->connect_on_init(qq{dbi:Pg:dbname=$db}, $usn, '' ) || die "bleh";
Apache::DBI->setPingTimeOut($dsn, 30 );
1;
####
$dbh = DBI->connect("dbi:Pg:dbname=rodneyd",q/postgres/,"",{AutoCommit =>0, RaiseError=>1, PrintError=>0}) || die "Could not Connec
t to DB".$dbi::errstr;