Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: mod_perl : Couldnt load Apache.pm

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


in reply to mod_perl : Couldnt load Apache.pm

Don't load that Bundle file. Load Apache::DBI from your startup.pl before you load anything else. Apache.pm 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 Apache.pm
by vc_will_do (Sexton) on Aug 29, 2007 at 16:06 UTC

    Thanks for your time. Now my startup.pl 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 - "Apache.pm was not loaded". I have installed mod_perl from apache.org today and Apache::DBI from CPAN. So I thing both are latest packages.

      At the top of my startup.pl file, I have:

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

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


      --chargrill
      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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found