You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Per Einar Ellefsen <pe...@skynet.be> on 2002/06/21 20:08:10 UTC
Re: Apache::DBI with mod_perl 2.0 (was Re: [ANNOUNCE]
Apache::DBI 0.89)
At 19:46 21.06.2002, Stas Bekman wrote:
>Per Einar Ellefsen wrote:
>>At 18:26 21.06.2002, Zac Morris wrote:
>>
>>>I actually have a question along these lines....
>>>
>>>I'm new to mod_perl myself, and I've just installed a new setup with Apache2
>>>and the mod_perl2 beta.
>>>
>>>That's all working well and my old cgi-bin type stuff works under mod_perl
>>>great.
>>>
>>>Now I'm trying to get more into the mod_perl specific stuff and when I: use
>>>Apache::DBI I'm getting a can't find Apache.pm
>>>
>>>To use Apache::DBI do I need the old mod_perl 1 also installed running some
>>>kind of "dual mode"? Or is that not even an option since I'm running
>>>Apache2. I'm learning quick so if this is covered someplace just give me a
>>>quick pointer.
>>
>>As Apache::DBI hasn't been tested with mod_perl 2.0 yet, you will need to:
>>1) make sure you are using the prefork MPM for Apache (as Stas said,
>>Apache::DBI can only work with that one)
>>2) You will probably need to run mod_perl 2.0 in compat mode: put
>> PerlModule Apache::compat
>
>but first you need:
>
>PerlModule Apache2
>
>or 'use Apache2' in startup.pl. see:
>http://perl.apache.org/release/docs/2.0/user/config/config.html#Accessing_the_mod_perl_2_0_Modules
Nope, he did a "clean" mod_perl 2 install, without MP_INST_APACHE2 I
think... so doesn't have an Apache.pm because mod_perl 1 wasn't installed
before.
--
Per Einar Ellefsen
per.einar@skynet.be
Re: Apache::DBI with mod_perl 2.0 (was Re: [ANNOUNCE] Apache::DBI
0.89)
Posted by Stas Bekman <st...@stason.org>.
>> but first you need:
>>
>> PerlModule Apache2
>>
>> or 'use Apache2' in startup.pl. see:
>> http://perl.apache.org/release/docs/2.0/user/config/config.html#Accessing_the_mod_perl_2_0_Modules
>>
>
>
> Nope, he did a "clean" mod_perl 2 install, without MP_INST_APACHE2 I
> think... so doesn't have an Apache.pm because mod_perl 1 wasn't
> installed before.
ah, ok then,
but most likely MP_INST_APACHE2 is going to be the default, so if later
you need to install mod_perl 1.0 you don't have to wipe your 2.0 install
first. so better start getting used to it :)
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com