vc_will_do has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, I am new to mod_perl. I have written a startup script like this.
On the line $dbh = Apache::DBI->connect_on_init, I am getting the error#!/usr/bin/perl BEGIN { use Bundle::Apache2 (); use Apache::DBI (); } use Apache2::Const -compile => qw(OK); $dbh = Apache::DBI->connect_on_init("DBI:mysql:database=dbname;host=lo +calhost","dbuser","dbpass",{ PrintError => 1, RaiseError => 0, AutoCo +mmit => 1}); 1;
I have mod_perl2 installed. Thanks in advance.Apache.pm was not loaded at ./startup.pl line 18
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: mod_perl : Couldnt load Apache.pm
by ikegami (Patriarch) on Aug 29, 2007 at 15:05 UTC | |
by vc_will_do (Sexton) on Aug 29, 2007 at 15:15 UTC | |
by chargrill (Parson) on Aug 29, 2007 at 16:07 UTC | |
by vc_will_do (Sexton) on Aug 29, 2007 at 16:33 UTC | |
by chargrill (Parson) on Aug 29, 2007 at 16:38 UTC | |
| |
Re: mod_perl : Couldnt load Apache.pm
by perrin (Chancellor) on Aug 29, 2007 at 15:36 UTC | |
by vc_will_do (Sexton) on Aug 29, 2007 at 16:06 UTC | |
by chargrill (Parson) on Aug 29, 2007 at 16:53 UTC | |
by perrin (Chancellor) on Aug 29, 2007 at 19:52 UTC | |
Re: mod_perl : Couldnt load Apache.pm
by vc_will_do (Sexton) on Aug 29, 2007 at 17:30 UTC |
Back to
Seekers of Perl Wisdom