Re: [ANNOUNCE] Apache::DBI 0.89

2002-06-24 Thread Geoffrey Young



Ask Bjoern Hansen wrote:

 Since early 1997 Edmund Mergl has been developing and maintaining
 Apache::DBI.  I would think that it's now one of the most used
 Apache related modules (and one of the most stable!)
 
 In the last almost 3 years only two bugs has been found.  Edmund no
 longer has time to make releases and such, so I fixed the last bug
 and made a new release which is available on CPAN.


hi ask...

there is at least one bug still outstanding that I know about

http://marc.theaimsgroup.com/?l=apache-modperlm=98167628923815w=2

doug's follow-up is here

http://marc.theaimsgroup.com/?l=apache-modperl-devm=98168434608627w=2

(though doug meant can_stack_handlers instead of can_push_handlers)

HTH

--Geoff








Re: Apache::DBI with mod_perl 2.0 (was Re: [ANNOUNCE] Apache::DBI 0.89)

2002-06-23 Thread Per Einar Ellefsen

At 00:49 23.06.2002, Charles Aulds wrote:
At 06:41 PM 6/21/02 +0200, Per Einar Ellefsen ([EMAIL PROTECTED]) wrote:

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
in your httpd.conf, before loading other modules (like Apache::DBI).

I didn't expect Apache::DBI to work under mod_perl 2.0, at least not well, 
but was quite surprised.  Today, I got it to work with this server:

Great! Seems like Apache::compat is working as a charm.


-- 
Per Einar Ellefsen
[EMAIL PROTECTED]





Re: Apache::DBI with mod_perl 2.0 (was Re: [ANNOUNCE] Apache::DBI 0.89)

2002-06-22 Thread Charles Aulds

At 06:41 PM 6/21/02 +0200, Per Einar Ellefsen ([EMAIL PROTECTED])
wrote:
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
in your httpd.conf, before loading other modules (like 
Apache::DBI).

I didn't expect Apache::DBI to work under mod_perl 2.0, at least not
well, but was quite surprised. Today, I got it to work with this
server:
Server Version: Apache/2.0.36
(Unix) mod_perl/1.99_03-dev Perl/v5.6.1 DAV/2 
Using Per Ellesfsen's suggests, and also pre-loading the following
startup.pl script (for compat.pm):
#!/usr/bin/perl
-w
use
strict;
use
Apache2();
use
Apache::compat;
1;
Rudimentary benchmarks, using a MySQL server, and very simple query,
shows that Apache::DBI significantly reduces user response time, and
increases the throughput of the server (a very limited single P200 MX
system, with only 64MB RAM running RH 7.3):
Table 8.2: Benchmarking Results Using Database Connection
Sharing

CGImod_perl

Server
Hostname192.168.1.1192.168.1.1
Server
Port8080
Document
Path/cgi-bin/zipcodes.cgi?zip=”35801”/perl/zipcodes.cgi?zip=”35801”
Concurrency
Level1010
Elapsed
Time258.722seconds63.691
seconds
Complete
Requests200200
Failed
Requests00
Total
Transferred127000 bytes131843
bytes
HTML
Transferred89200 bytes90200
bytes
Requests per
Second0.773.20
Median Connection Times
12518 ms424
ms
Transfer
Rate0.48Kbps received2.05Kbps
received



---
Charles Aulds, MCSE, MCP+I
Voice: (256) 931-5593 Fax: (240)
352-8290
http://hiwaay.net/~caulds




Re: Apache::DBI with mod_perl 2.0 (was Re: [ANNOUNCE] Apache::DBI 0.89)

2002-06-22 Thread Charles Aulds

At 06:41 PM 6/21/02 +0200, Per Einar Ellefsen ([EMAIL PROTECTED])
wrote:
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
in your httpd.conf, before loading other modules (like
Apache::DBI).
I didn't expect Apache::DBI to work under mod_perl 2.0, at least not
well, but was quite surprised. Today, I got it to work with this
server:
Server Version: Apache/2.0.36 (Unix) mod_perl/1.99_03-dev Perl/v5.6.1
DAV/2 
Using Per Ellesfsen's suggests, and also pre-loading the following
startup.pl script (for compat.pm):
#!/usr/bin/perl
-w
use
strict;
use
Apache2();
use
Apache::compat;
1;
Rudimentary benchmarks, using a MySQL server, and very simple query,
shows that Apache::DBI significantly reduces user response time, and
increases the throughput of the server (a very limited single P200 MX
system, with only 64MB RAM running RH 7.3):
CGImod_perl

Server
Hostname192.168.1.1192.168.1.1
Server
Port8080
Document
Path/cgi-bin/zipcodes.cg
/perl/zipcodes.cgi?
zip=”35801”
zip=”35801
Concurrency
Level1010
Elapsed
Time258.722seconds63.691
seconds
Complete
Requests200200
Failed
Requests00
Total
Transferred127000
bytes131843
bytes
HTML
Transferred89200
bytes90200
bytes
Requests per
Second0.773.20
Median Connection Times
12518
ms424
ms
Transfer
Rate0.48Kbps
received2.05Kbps
received
---
Charles Aulds, MCSE, MCP+I
Voice: (256) 931-5593 Fax: (240)
352-8290
http://hiwaay.net/~caulds




Re: [ANNOUNCE] Apache::DBI 0.89

2002-06-21 Thread Stas Bekman

Perrin Harkins wrote:
 Ask Bjoern Hansen wrote:
 
 In the last almost 3 years only two bugs has been found.  Edmund no
 longer has time to make releases and such, so I fixed the last bug
 and made a new release which is available on CPAN.
 
 
 Thanks for taking over maintenance on this.  Any thoughts about how to 
 add support for threading in perl 5.8/mod_perl 2 to this?  It might be 
 premature, since the DBI/DBD modules are not necessarilly thread safe.

the preforked mpm will use the same old Apache::DBI

the threaded mpms will need a new version/mode of Apache::DBI using 
threads::shared, currently available only for 5.8.0-tobe, unless things 
will get backported to 5.6.2. Currently it seems that the threaded mpms 
will be safe to use only with 5.8.0, unless again things will get 
backported. Otherwise chances are that 5.8.0 will be a requirement.

Originally Doug was planning on Apache::DBIPool described in his 2.0 
overview:
http://perl.apache.org/release/docs/2.0/user/overview/overview.html#Apache__DBIPool
but since we now have threads::shared it's not needed anymore.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: [ANNOUNCE] Apache::DBI 0.89

2002-06-21 Thread Perrin Harkins

Stas Bekman wrote:
 the threaded mpms will need a new version/mode of Apache::DBI using 
 threads::shared, currently available only for 5.8.0-tobe, unless things 
 will get backported to 5.6.2. Currently it seems that the threaded mpms 
 will be safe to use only with 5.8.0, unless again things will get 
 backported. Otherwise chances are that 5.8.0 will be a requirement.

I saw that message, which is why I mentioned 5.8, but I was wondering if 
anyone has seen discussion of whether or not DBI will be safe to use 
with 5.8 threads.  Does anyone know?

- Perrin




Re: [ANNOUNCE] Apache::DBI 0.89

2002-06-21 Thread Zac Morris

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.

Thanks!
-Zac Morris
http://www.zacwolf.com




- Original Message -
From: Stas Bekman [EMAIL PROTECTED]
To: Perrin Harkins [EMAIL PROTECTED]
Cc: Ask Bjoern Hansen [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 12:03 PM
Subject: Re: [ANNOUNCE] Apache::DBI 0.89


 Perrin Harkins wrote:
  Ask Bjoern Hansen wrote:
 
  In the last almost 3 years only two bugs has been found.  Edmund no
  longer has time to make releases and such, so I fixed the last bug
  and made a new release which is available on CPAN.
 
 
  Thanks for taking over maintenance on this.  Any thoughts about how to
  add support for threading in perl 5.8/mod_perl 2 to this?  It might be
  premature, since the DBI/DBD modules are not necessarilly thread safe.

 the preforked mpm will use the same old Apache::DBI

 the threaded mpms will need a new version/mode of Apache::DBI using
 threads::shared, currently available only for 5.8.0-tobe, unless things
 will get backported to 5.6.2. Currently it seems that the threaded mpms
 will be safe to use only with 5.8.0, unless again things will get
 backported. Otherwise chances are that 5.8.0 will be a requirement.

 Originally Doug was planning on Apache::DBIPool described in his 2.0
 overview:

http://perl.apache.org/release/docs/2.0/user/overview/overview.html#Apache__
DBIPool
 but since we now have threads::shared it's not needed anymore.

 __
 Stas BekmanJAm_pH -- Just Another mod_perl Hacker
 http://stason.org/ mod_perl Guide --- http://perl.apache.org
 mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
 http://modperlbook.org http://apache.org   http://ticketmaster.com





Re: Apache::DBI with mod_perl 2.0 (was Re: [ANNOUNCE] Apache::DBI 0.89)

2002-06-21 Thread Per Einar Ellefsen

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
in your httpd.conf, before loading other modules (like Apache::DBI).

You will probably also want to see the 2.0 docs at 
http://perl.apache.org/release/docs/

Good luck!


-- 
Per Einar Ellefsen
[EMAIL PROTECTED]





Re: Apache::DBI with mod_perl 2.0 (was Re: [ANNOUNCE] Apache::DBI 0.89)

2002-06-21 Thread Per Einar Ellefsen

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
[EMAIL PROTECTED]