Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: mod_perl : Couldnt load

by perrin (Chancellor)
on Aug 29, 2007 at 15:36 UTC ( #635824=note: print w/replies, xml ) Need Help??

in reply to mod_perl : Couldnt load

Don't load that Bundle file. Load Apache::DBI from your before you load anything else. will be loaded automatically by mod_perl, so you don't need to load it yourself. Make sure you have the latest versions of mod_perl and Apache::DBI.

Replies are listed 'Best First'.
Re^2: mod_perl : Couldnt load
by vc_will_do (Sexton) on Aug 29, 2007 at 16:06 UTC

    Thanks for your time. Now my looks like

    #!/usr/bin/perl BEGIN { use Apache::DBI; } $dbh = Apache::DBI->connect_on_init("DBI:mysql:database=dbname;host=lo +calhost","dbuser","dbpass",{ PrintError => 1, RaiseError => 0, AutoCo +mmit => 1}); 1;
    Still have same error - " was not loaded". I have installed mod_perl from today and Apache::DBI from CPAN. So I thing both are latest packages.

      At the top of my file, I have:

      BEGIN { use Apache(); # ... }

      Seems I was steering you wrong, thinking you hadn't installed mod_perl yet.

      s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
        You don't need to load Apache. mod_perl does it already.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://635824]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2023-10-01 21:53 GMT
Find Nodes?
    Voting Booth?

    No recent polls found