On Mon, 2007-07-30 at 18:21 +0800, Ken Perl wrote: > I've configured the Apache::DBI in httpd.conf like this, > > PerlModule Apache::DBI > > I didn't have Apache::DBI->connect_on_init($data_source, $username, > $auth, \%attr) in startup.pl since we don't use startup.pl. and the > doc says to config it in httpd.conf is OK. > > my question is I can not find any persistent connections for my CGI > script. any usage error here?
Persistent connections will not work for straight CGI scripts, because CGI is not persistent. For each CGI request, a new perl interpreter is loaded, your script is compiled, run, and the Perl process exits. mod_perl IS persistent, as are your CGI scripts run via ModPerl::Registry etc. You don't need connect_on_init to work, but you do need mod_perl Clint >