Hallo,
I installed the Apache:DBI - modul for pers. conection and Auth over DBi,
the auth works but not the pers. connection. If i want to start the
startup.pl I get hte following error-messeage:
####ERROR
bash-2.03$ perl startup.pl
Can't locate object method "module" via package "Apache" at
/users/local/site_pe
rl/lib/site_perl/5.005/Apache/DBI.pm line 202.
BEGIN failed--compilation aborted at startup.pl line 15.
####STARTUP.pl
#!/usr/bin/perl
##########################################################################
#
# (c) Markus Wolf, 1998
# [EMAIL PROTECTED]
#
##########################################################################
# to load this file when the server starts, add this to httpd.conf:
# PerlRequire /path/to/startup.pl
# make sure we are in a sane environment.
$ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die "GATEWAY_INTERFACE not Perl!";
use Apache::Registry;
use Apache::Status ;
use Apache::DBI;
#use Apache::AuthDBI;
use strict;
# optional configuration for Apache::DBI.pm:
# choose debug output: 0 = off, 1 = quiet, 2 = chatty
#$Apache::DBI::DEBUG = 2;
# configure all connections which should be established during server
startup.
# keep in mind, that if the connect does not succeeed, your server won't
start
# until the connect times out (database dependent) !
# you may use a DSN with attribute settings specified within
Apache::DBI->connect_on_init("DBI:mysql:kinokasse", "xxx", "xxx") ;
# configure the ping behavior of the persistent database connections
# you may NOT not use a DSN with attribute settings specified within
# $timeout = 0 -> always ping the database connection (default)
# $timeout < 0 -> never ping the database connection
# $timeout > 0 -> ping the database connection only if the last access
# was more than timeout seconds before
#Apache::DBI->setPingTimeOut("dbi:driver:database", $timeout);
# optional configuration for Apache::AuthDBI.pm:
# choose debug output: 0 = off, 1 = quiet, 2 = chatty
#$Apache::AuthDBI::DEBUG = 2;
# set lifetime in seconds for the entries in the cache
#Apache::AuthDBI->setCacheTime(0);
# set minimum time in seconds between two runs of the handler which cleans
the cache
#Apache::AuthDBI->setCleanupTime(-1);
# use shared memory of given size for the cache
#Apache::AuthDBI->initIPC(50000);
1;
##########
Can you help me?
Stay charming in the year 2000 ....
/\/\arkus
\/\/olf
WWW: http://www.perl-archiv.de - Wolf's PERL/CGI-ARCHIV
WWW: http://www.mailcheck.de - heute schon gecheckt ?
---------------------------------------------------------------------
eCommerce for everyone: http://www.one-shop.de
---------------------------------------------------------------------
!!!! WICHTIG !!!!
Haben Sie sich schon das neue Fernabsatzgesetz angeschaut?
Wenn nicht, sollten Sie das unbedingt machen.
www.fernabsatzgesetz.de
!!!! WICHTIG !!!!
---------------------------------------------------------------------
iAn interAKTIVnet GmbH
Otto-Lilienthal-Str. 36
71034 Böblingen
Tel: 07031-714740
Fax: 07031-714744
---------------------------------------------------------------------