mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-13 Thread Jérôme Augé
Hi, I'm beginning with mod_perl (mod_perl-1.99_05 + Apache 2.0.40 from RedHat 8.0) and I want to write a module for rewriting the documents that passes through the Apache proxy. So, I looked at the Apache::AdBlocker (http://perl.apache.org/docs/tutorials/tips/mod_perl_tricks/mod_perl_tricks.html#A

array through pages

2003-01-13 Thread koudjo ametepe
hello everybody thank you for al your request and suggests. I have a problem with array in perl cgi .I want to pass an array trhough two pages , just like we do with a simple varaiable ; but i can't find the way to do it . Please can you give me sme ideas about it Thank you koudjo MSN Search, le

array through pages

2003-01-13 Thread koudjo ametepe
hello everybody thank you for al your request and suggests. I have a problem with array in perl cgi .I want to pass an array trhough two pages , just like we do with a simple varaiable ; but i can't find the way to do it . Please can you give me sme ideas about it Thank you koudjo __

Re: array through pages

2003-01-13 Thread Sven Geisler
Hi koudjo, easy: use Storable qw(freeze thaw); use MIME::Base64 qw(encode_base64 decode_base64); # to encode use: $pass_throw_var = encode_base64(freeze(\@your_array)); ... # to decode use: $your_array_ref = thaw(decode_base64($pass_throw_var)); Regards Sven. Am Mon, 2003-01-13 um 10.26 sc

unsubscribe modperl

2003-01-13 Thread Ulrich Brochhagen
unsubscribe modperl -- _ Senatsverwaltung für Stadtentwicklung Informationssystem Stadt und Umwelt IXB2/Br Ulrich Brochhagen Webmaster - Internetserver Brückenstr. 6, 10179 Berlin, Raum 4.007 Tel.+49 - 30 - 9025 2125 Fax +49 - 30 - 9025

unsubscribe modperl

2003-01-13 Thread [EMAIL PROTECTED]
unsubscribe modperl -- mail2web - Check your email from the web at http://mail2web.com/ .

pre-spawning database connections[newbie]

2003-01-13 Thread Ben Wrigley
Hi All,   I'm a mod_perl newbie and just trying to understand a little more about the startup.pl files and prespawning databases.   I am using the connect_on_init routine in the startup.pl which is fine.   What I'm not sure is then how to use this most economically in my scripts.   It seem

Redirect or Subprocess - Problems

2003-01-13 Thread Marc Ian Brewer
Hi everybody,   I have a problem with Mod_Perl 1.27 on Apache 1.3.12. We have an Perl Transaction Handler which takes all requests. The Transaction Handler is only for redirecting to different pages. One of this pages is an embedded Perl page.   Our problem is, that one request will be procee

Re: pre-spawning database connections[newbie]

2003-01-13 Thread Sven Geisler
Hi Ben, Do you use Apache::DBI? I mean yes because you're using connect_on_init. Apache::DBI do not really close your DBI connection. You will get the same connection with the same connection parameters, when you call DBI->connect. All connections are cached by Apache::DBI. Yes, you should call

Memory Usage

2003-01-13 Thread Chris Faust
Hi All, I've converted my site to mod_perl and everything seems great.. Sometimes it will run for days without an issue and other times the machine will die, normally because of out of memory problems. My question is, should I be doing anything to worry about memory? I mean I would think when th

Re: Redirect or Subprocess - Problems

2003-01-13 Thread Nick Tonkin
On Mon, 13 Jan 2003, Marc Ian Brewer wrote: > Hi everybody, > > I have a problem with Mod_Perl 1.27 on Apache 1.3.12. We have an Perl > Transaction Handler which takes all requests. The Transaction Handler > is only for redirecting to different pages. One of this pages is an > embedded Perl page.

Load balancers

2003-01-13 Thread John Siracusa
(This may seem off topic for this list, but I'll try to bring it around before the end of the message :) We've been struggling with load balancers for a while now. My requirements are pretty simple. I have a handful of plain and mod_perl apache servers, some of which are identical and a few of wh

Re: Load balancers

2003-01-13 Thread Ask Bjoern Hansen
On Mon, 13 Jan 2003, John Siracusa wrote: > So...suggestions? How are other people handling load balancing? With hardware load balancers. :-) You forgot to include the information about number of servers, requests per second at peak times, reponse sizes, etc etc. - ask -- ask bjoern hans

Re: Load balancers

2003-01-13 Thread Paolo Campanella
On Mon, 13 Jan 2003 11:03:28 -0500 John Siracusa <[EMAIL PROTECTED]> wrote: > We've been struggling with load balancers for a while now. My > requirements are pretty simple. I have a handful of plain and mod_perl > apache servers, some of which are identical and a few of which are the > only ones

Re: Memory Usage

2003-01-13 Thread domm
Hi! On Mon, Jan 13, 2003 at 10:15:58AM -0500, Chris Faust wrote: > Sometimes it will run for days without an issue and other times the machine > will die, normally because of out of memory problems. > .. > Any help or direction would be appreciated. There is quite a lot of documentation about me

Re: Load balancers

2003-01-13 Thread John Siracusa
On 1/13/03 11:12 AM, Ask Bjoern Hansen wrote: > On Mon, 13 Jan 2003, John Siracusa wrote: >> So...suggestions? How are other people handling load balancing? > > With hardware load balancers. :-) Sure, rub it in ;) > You forgot to include the information about number of servers, > requests per

Re: Load balancers

2003-01-13 Thread Perrin Harkins
John Siracusa wrote: But meanwhile, we're still open to alternatives. Surprisingly, there don't seem to be many (software) options. (A hardware load balancer is not an option at his time, but I'll also take any suggestions in that area :) I've always used hardware ones. I believe big/ip does

Re: Load balancers

2003-01-13 Thread Nick Tonkin
On Mon, 13 Jan 2003, John Siracusa wrote: > But meanwhile, we're still open to alternatives. Surprisingly, there don't > seem to be many (software) options. (A hardware load balancer is not an > option at his time, but I'll also take any suggestions in that area :) My experience in this area le

Re: Load balancers

2003-01-13 Thread Steven Adams
On Monday 13 January 2003 08:03 am, John Siracusa wrote: > (We're running various versions of Linux on our servers, if that makes any > difference.) > > So...suggestions? How are other people handling load balancing? > > -John Hey John, Take a look at the LVS project, www.foundrynetworks.com and

Re: Load balancers

2003-01-13 Thread Andy Osborne
John Siracusa wrote: [snip] > But meanwhile, we're still open to alternatives. Surprisingly, there don't seem to be many (software) options. (A hardware load balancer is not an option at his time, but I'll also take any suggestions in that area :) [snip] So...suggestions? How are other peop

Re: Load balancers

2003-01-13 Thread Larry Leszczynski
> The Load Balancing section of this doc might help: > http://httpd.apache.org/docs/misc/rewriteguide.html > > Just straight apache + mod_rewrite could be the simple solution you > seek. The Proxy Throughput Round-Robin example shows how to add a > script to do mapping as well - could work for yo

RE: Load balancers

2003-01-13 Thread Jesse Erlbaum
Hi John -- > But meanwhile, we're still open to alternatives. > Surprisingly, there don't seem to be many (software) options. > (A hardware load balancer is not an option at his time, but > I'll also take any suggestions in that area :) Why is hardware not an option? Cost? If so, I'd tak

Re: Load balancers

2003-01-13 Thread Leo Lapworth
Hi John, I use wackamole (http://www.backhand.org/wackamole/) on my (2) front end servers with 6 IP addresses doing Round Robin (RR) DNS. This is suffichent for loadbalencing the light (HTML / IMAGE only) front end. I had a issue with this once, it got the IP address allocation confused, but othe

Re: Load balancers

2003-01-13 Thread James G Smith
Perrin Harkins <[EMAIL PROTECTED]> wrote: >John Siracusa wrote: >> But meanwhile, we're still open to alternatives. Surprisingly, there don't >> seem to be many (software) options. (A hardware load balancer is not an >> option at his time, but I'll also take any suggestions in that area :) > >I'v

Re: Load balancers

2003-01-13 Thread Francesc Guasch Ortiz
John Siracusa wrote: We've been struggling with load balancers for a while now. My requirements are pretty simple. I have a handful of plain and mod_perl apache servers, So...suggestions? How are other people handling load balancing? I have tested pen. It's easy to set up and works fine so fa

Inserting a handler in "stack of handlers".

2003-01-13 Thread Ruslan U. Zakirov
Hello All! Short synopsis: How to push handler just after handler that working now? More about the problem. I've got main handler, that forms stack of handlers from query string by calling push_handlers(). Then each module doing his job. Some handlers needs to put another hook just after

RE: OSCON ideas - missing proceedings

2003-01-13 Thread Nathan Torkington
Mark Schoonover writes: > Are there plans to do the University again?? Every year or two I try again to revive it. Your message started me again this year. No promises, but we're looking into it. > Thanks Nat for the work you did down here!! Thanks for your kind words. I love every minute of

Re: Load balancers

2003-01-13 Thread John Siracusa
That's for all the info so far. To answer some questions, hardware is a cost issue right now. It's somewhat scary that $3,200 was a "reasonable" price several years ago, but I suppose it could be worse. We will investigate further. The mod_rewrite solutions lack dead server detection, and that'

Re: Load balancers

2003-01-13 Thread Perrin Harkins
John Siracusa wrote: The mod_rewrite solutions lack dead server detection, and that's something I'd rather not try to roll on my own, especially after seeing how well (or not, actually) existing software solutions do. But I've added it to the list. ... It's kind of disappointing to hear that th

Re: Load balancers

2003-01-13 Thread John Siracusa
On 1/13/03 1:04 PM, Perrin Harkins wrote: > John Siracusa wrote: >> The mod_rewrite solutions lack dead server detection, and that's something >> I'd rather not try to roll on my own, especially after seeing how well (or >> not, actually) existing software solutions do. But I've added it to the >>

Re: Inserting a handler in "stack of handlers".

2003-01-13 Thread Geoffrey Young
Ruslan U. Zakirov wrote: Hello All! Short synopsis: How to push handler just after handler that working now? More about the problem. I've got main handler, that forms stack of handlers from query string by calling push_handlers(). Then each module doing his job. Some handlers needs to

RE: Load balancers

2003-01-13 Thread Jesse Erlbaum
Hi John -- > That's for all the info so far. To answer some questions, > hardware is a cost issue right now. It's somewhat scary that > $3,200 was a "reasonable" price several years ago, but I > suppose it could be worse. We will investigate further. Actually, $3200 was a STEAL! Cisco's "L

Re: Load balancers

2003-01-13 Thread Perrin Harkins
John Siracusa wrote: But in a full-fledged mod_perl solution, I could back out gracefully and retry another server if I happened to initially choose a dead server before my dead server detection code caught it. That sounds cool, but how important is it really? I'm not sure any of these solutio

Re: Load balancers

2003-01-13 Thread John Siracusa
On 1/13/03 1:28 PM, Perrin Harkins wrote: > John Siracusa wrote: >> But in a full-fledged mod_perl solution, I could back out gracefully and >> retry another server if I happened to initially choose a dead server before >> my dead server detection code caught it. > > That sounds cool, but how impo

RE: Load balancers

2003-01-13 Thread Stephen Reppucci
On Mon, 13 Jan 2003, Jesse Erlbaum wrote: > > That's for all the info so far. To answer some questions, > > hardware is a cost issue right now. It's somewhat scary that > > $3,200 was a "reasonable" price several years ago, but I > > suppose it could be worse. We will investigate further. > > A

Re: Load balancers

2003-01-13 Thread Dzuy Nguyen
I've developed an embedded (Linux) load balancer solution. It's small form factor, runs on 8MB flash minimum, no hard drive, no fan so no wories about hard drive failure. It is LVS NAT (L4) based with configurable monitoring service. It load balances any port you want. I've deployed it to load

Writing to stdin of subprocess under modperl 1.0 fails :/

2003-01-13 Thread Antti Haapala
Hello all, I'm having trouble with following script under mod_perl 1.26 (perl 5.6.1). use strict (); use IO::Handle (); use IPC::Open2 (); ### # # Check $username & $password against YP database sub check_password { my ($username, $passwd) = @_; my($rh, $wh); # open bi

RE: Load balancers

2003-01-13 Thread Jesse Erlbaum
Hi Perrin -- > That sounds cool, but how important is it really? I'm not > sure any of > these solutions (including the commercial ones) do that level of > seamless failover effectively. I know the CPE will pull faulty servers our of the pool, but it does so as a separate process (not by back

RE: Load balancers

2003-01-13 Thread Nick Tonkin
On Mon, 13 Jan 2003, Jesse Erlbaum wrote: > Hi John -- > > > That's for all the info so far. To answer some questions, > > hardware is a cost issue right now. It's somewhat scary that > > $3,200 was a "reasonable" price several years ago, but I > > suppose it could be worse. We will investi

1.3.27 DSO hassles

2003-01-13 Thread Sinclair, Alan (CORP, GEAccess)
All, Having been successfully using modperl for the last 2 years statically linked with Apache, I have been trying again to make modperl work with 1.3.27 when the Apache core modules are loaded as DSOs. There has been some traffic in the past on this subject and I checked the archives and followed

Re: Load balancers

2003-01-13 Thread Nick Tonkin
On Mon, 13 Jan 2003, Perrin Harkins wrote: > John Siracusa wrote: > > But in a full-fledged mod_perl solution, I could back out gracefully and > > retry another server if I happened to initially choose a dead server before > > my dead server detection code caught it. > > That sounds cool, but how

Re: Unregister streamed output filters

2003-01-13 Thread Stas Bekman
Esteban Fernandez Stafford wrote: On Sat, 11 Jan 2003, Stas Bekman wrote: Esteban Fernandez Stafford wrote: Hello all, is there a way to unregister a streamed filter? I have seen this in many (all?) apache (C programmed) filters; they are able of declining the filtering of a certain stream,

Re: mod_perl & mod_jk

2003-01-13 Thread Stas Bekman
MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote: I think I found the problem - it was because of a LoadModule directive that was defined in 1.99-07, but renamed to PerlLoadModule in 1.99-08. The reason why I ran into the problem of unable to load mod_jk, was because I was trying to load mod_jk afte

Re: unsubscribe modperl

2003-01-13 Thread Stas Bekman
[EMAIL PROTECTED] wrote: unsubscribe modperl The information to unsubscribe is in the header of the email: list-help: list-unsubscribe: list-post: You have to unsubscribe yourself, I can't help you, so please don'

Re: pre-spawning database connections[newbie]

2003-01-13 Thread Stas Bekman
Sven Geisler wrote: Hi Ben, Do you use Apache::DBI? I mean yes because you're using connect_on_init. Apache::DBI do not really close your DBI connection. You will get the same connection with the same connection parameters, when you call DBI->connect. All connections are cached by Apache::DBI.

Re: Load balancers

2003-01-13 Thread Stas Bekman
John Siracusa wrote: (This may seem off topic for this list, but I'll try to bring it around before the end of the message :) We've been struggling with load balancers for a while now. It seems that most experts hang at [EMAIL PROTECTED] It's also preferrable that the hw solutions will be disc

Re: Inserting a handler in "stack of handlers".

2003-01-13 Thread Stas Bekman
Geoffrey Young wrote: Ruslan U. Zakirov wrote: Hello All! Short synopsis: How to push handler just after handler that working now? More about the problem. I've got main handler, that forms stack of handlers from query string by calling push_handlers(). Then each module doing his jo

Re: Writing to stdin of subprocess under modperl 1.0 fails :/

2003-01-13 Thread Stas Bekman
Antti Haapala wrote: Hello all, I'm having trouble with following script under mod_perl 1.26 (perl 5.6.1). use strict (); use IO::Handle (); use IPC::Open2 (); [...] Use IPC::Run instead of the IPC::Open* family, it surely works and a much more flexible tool! Probably need to add an it

Re: 1.3.27 DSO hassles

2003-01-13 Thread Stas Bekman
Sinclair, Alan (CORP, GEAccess) wrote: All, Having been successfully using modperl for the last 2 years statically linked with Apache, I have been trying again to make modperl work with 1.3.27 when the Apache core modules are loaded as DSOs. There has been some traffic in the past on this subject

Re: 1.3.27 DSO hassles

2003-01-13 Thread John D Groenveld
In message <[EMAIL PROTECTED]>, Stas Bekman writes: >There were some suggestions offered in this thread (large files CFLAGS?) >http://marc.theaimsgroup.com/?t=10168427183&r=1&w=2 >Though I didn't see a success report. > >If somebody on Solaris 2.6 were able to get it to work, please chime in.

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-13 Thread Stas Bekman
Jérôme Augé wrote: Hi, I'm beginning with mod_perl (mod_perl-1.99_05 + Apache 2.0.40 from RedHat 8.0) and I want to write a module for rewriting the documents that passes through the Apache proxy. So, I looked at the Apache::AdBlocker (http://perl.apache.org/docs/tutorials/tips/mod_perl_tricks

Re: mod_perl 2.0 and print/send_http_header method SEGFAULT

2003-01-13 Thread Stas Bekman
Stas Bekman wrote: Jérôme Augé wrote: [...] After making your example work, I don't see any segfaults. Please try again with modperl-1.99_08 which was released a few days ago. [...] 1. You can't push_handlers when you are inside a response handler. Use PerlHeaderParserHandler instead I've

Timestamp for Apache::Upload uploads.

2003-01-13 Thread Matthew Hodgson
Hi, I could have sworn that at some point under Apache/1.3.27 and mod_perl/1.27 I had the ability to find a timestamp of some kind for uploaded files using Apache::Upload. To be precise, I thought that: $upload = $apr->upload; $filehandle = $upload->fh; $timestamp = (stat($filehandle))[9]; yiel