Re: Apache::Request and memory

2000-06-23 Thread Matt Sergeant
On Thu, 22 Jun 2000, Jim Winstead wrote: > Attached is a patch to libapreq that addresses this problem. Question for Doug, Can we get libapreq 0.32 out any time soon? There are some pretty nasty bugs in 0.31 that I'm waiting to get fixed. (the null cookies problem, this problem, the form charse

Re: using a module to contain settings.

2000-06-23 Thread Stas Bekman
On Thu, 22 Jun 2000, Scott Alexander wrote: > I'm working on creating a site that is completely done in mod perl. > > The area that I'm running into problems with is using a single > module to store configuration information. ie where images are > stored. oracle settings, color codes etc. All

Apache does't behave well with mod_perl

2000-06-23 Thread Jakub Vosahlo
Hello; I am in big troubles compiling mod_perl 1.23 with apache 1.3.12 on SuSE 6.4. I have tried to compile mod_perl statically into httpd using axps. I have received httpd file much bigger than an "empty" one, but httpd didn't know anything about mod_perl directives inside httpd.conf (it compla

RE: MaxChildRequests and modperl - issue

2000-06-23 Thread Craig Vincent
>Any easy fixes to this? am I the first to find this? Am i missing >something obvious? Perhaps having my own ChildRequest counter and >dieing myself, but more randomly, is a better way? If you're using mod_perl why not use the Apache::SizeLimit module instead of the MaxChildRequests. AFAIK the o

Re: using a module to contain settings.

2000-06-23 Thread Peter Schoenster
- Original Message - From: Scott Alexander <[EMAIL PROTECTED]> > The area that I'm running into problems with is using a single > module to store configuration information. ie where images are > stored. oracle settings, color codes etc. All the settings that are > valid accross the entir

***JOB at idealab!***

2000-06-23 Thread josh schwartz
idealab! creates, launches and operates Internet businesses. Founded in March 1996, idealab! currently has approximately 50 businesses in various stages of development. In addition to capital, idealab! provides a full range of resources to infuse startup companies with the development strategies a

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread David Hodgkinson
Justin <[EMAIL PROTECTED]> writes: > What I think happens is the children die after their last request, > and apache does not kick off a new child straight away.. MinFree is > set to 2 .. as 12 becomes 11 becomes 10 becomes 9, my backend is > getting less and less powerful and more and more swam

Re: Advice about mod_perl vs. fastcgi (specific)

2000-06-23 Thread David Hodgkinson
Perrin Harkins <[EMAIL PROTECTED]> writes: > On Thu, 22 Jun 2000, Todd Federman wrote: > > > So, my main question: Is there a way to use mod_perl with remote > > execution, or at that point is it just silly not to go with fastcgi? > > Not sure how you missed it, but go and read the discussion

[advocacy] FUD spreading by velocigen fan

2000-06-23 Thread Stas Bekman
In the article "Up to Speed with VelociGen" located http://www.webtechniques.com/archives/2000/05/infrrevu/ Brian Wilson tries to compare Velocigen with mod_perl, unfortunately gives lots of FUD for mod_perl instead of having a true comparison. For those who don't know FUD is an abbreviation stan

[XOT] doesn't it supported?

2000-06-23 Thread Kenneth Lee
(XOT: eXtremely OT) perl complains about variable method calls ($obj->$meth) when I move from 5.6.0 back to 5.00503, it says syntax error near "$meth". i think this is supported at the very beginning. did i missed sth? kenneth

[advocacy] writing articles

2000-06-23 Thread Stas Bekman
Folks, if you think that you can write a few articles about mod_perl please approach one of the many online magazines about web technology, linux, unix (ms?) and what not, and offer to write about it. All you have to do is to go to the site, find an email of the publisher and offer yourself, proba

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Stas Bekman
On 23 Jun 2000, David Hodgkinson wrote: > > Justin <[EMAIL PROTECTED]> writes: > > > What I think happens is the children die after their last request, > > and apache does not kick off a new child straight away.. MinFree is > > set to 2 .. as 12 becomes 11 becomes 10 becomes 9, my backend is >

RE: search engine for the Guide

2000-06-23 Thread Vladislav Safronov
Hi, Try http://www.comptek.ru/yandex/YandexFree.html search engine for web servers with highlighting searched words... > -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 04, 2000 2:10 PM > To: Matt Sergeant > Cc: mod_perl list > Subject: Re: sea

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread David Hodgkinson
Stas Bekman <[EMAIL PROTECTED]> writes: > On 23 Jun 2000, David Hodgkinson wrote: > > > > > Justin <[EMAIL PROTECTED]> writes: > > > > > What I think happens is the children die after their last request, > > > and apache does not kick off a new child straight away.. MinFree is > > > set to 2

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Stas Bekman
On 23 Jun 2000, David Hodgkinson wrote: > > Stas Bekman <[EMAIL PROTECTED]> writes: > > > On 23 Jun 2000, David Hodgkinson wrote: > > > > > > > > Justin <[EMAIL PROTECTED]> writes: > > > > > > > What I think happens is the children die after their last request, > > > > and apache does not ki

RE: search engine for the Guide

2000-06-23 Thread Stas Bekman
On Fri, 23 Jun 2000, Vladislav Safronov wrote: > Hi, > > Try http://www.comptek.ru/yandex/YandexFree.html > search engine for web servers with highlighting searched words... Heh, it helps when you know Russian and have the font installed :) Oh, I see the English link: http://www.comptek.ru:81

RE: Highly optimized mod_perl ?

2000-06-23 Thread Vladislav Safronov
Hi, ( ili privet ) I was looking any tips and tricks to optimize my perl script since, our sysadm tells that it's mod_perl slow down the web server response time and it should be rewritten in C. This script does use any database connection, so I think threre is no real way to speed it up. Posting

Re: [advocacy] FUD spreading by velocigen fan

2000-06-23 Thread Matt Sergeant
On Fri, 23 Jun 2000, Stas Bekman wrote: > In the article "Up to Speed with VelociGen" located > http://www.webtechniques.com/archives/2000/05/infrrevu/ Brian Wilson > tries to compare Velocigen with mod_perl, unfortunately gives lots of > FUD for mod_perl instead of having a true comparison. I t

Re: [XOT] doesn't it supported?

2000-06-23 Thread Matt Sergeant
On Fri, 23 Jun 2000, Kenneth Lee wrote: > (XOT: eXtremely OT) > > perl complains about variable method calls ($obj->$meth) when I move from > 5.6.0 back to 5.00503, it says syntax error near "$meth". > > i think this is supported at the very beginning. did i missed sth? Yes. $obj->$meth();

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread David Hodgkinson
Stas Bekman <[EMAIL PROTECTED]> writes: > > If you take a large script, throw it at Apache::Registry, then you'll > > be compiling the script every time the a diaghter respawns. > > > > If you have your script largely preloaded when Apache starts spawning > > daughters, then you don't have that

Re: [advocacy] writing articles

2000-06-23 Thread Matt Sergeant
On Fri, 23 Jun 2000, Stas Bekman wrote: > You wrote a nice module that plugs into mod_perl? Write about it! I'm working on more AxKit articles - I should have another coming up sometime on xml.com. I'd welcome others to write about it too, and be willing to help with any proof reading. > If you

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Stas Bekman
On 23 Jun 2000, David Hodgkinson wrote: > > Stas Bekman <[EMAIL PROTECTED]> writes: > > > > If you take a large script, throw it at Apache::Registry, then you'll > > > be compiling the script every time the a diaghter respawns. > > > > > > If you have your script largely preloaded when Apache s

RE: Highly optimized mod_perl ?

2000-06-23 Thread Stas Bekman
> Hi, ( ili privet ) > > I was looking any tips and tricks to optimize my perl script since, > our sysadm tells that it's mod_perl slow down the web server > response time and it should be rewritten in C. This script > does use any database connection, so I think threre is no real way to > speed

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread David Hodgkinson
Stas Bekman <[EMAIL PROTECTED]> writes: > I think it doesn't matter whether it's a script or a module. So if startup.pl contains: use CGI ; use DBI ; use My::Application ; Then there's no gain? -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Stas Bekman
> Stas Bekman <[EMAIL PROTECTED]> writes: > > > > I think it doesn't matter whether it's a script or a module. > > So if startup.pl contains: > > use CGI ; > use DBI ; > use My::Application ; > > Then there's no gain? Of course there is! I'm talking about a completely diffent thing. Let me

Totally annoyed at IE ( Cookie oddity )

2000-06-23 Thread John Armstrong
Trying to get IE to take a cookie in either an error header or a standard header has just been driving me insane tonight. After every possible iteration I ended up with the following and a redirect. Note that $r->header_out() worked without a redirect as well. $r->err_header_out('Set-cookie' =

RE: Totally annoyed at IE ( Cookie oddity )

2000-06-23 Thread Geoffrey Young
I just tried the following registry script with NS4.7 and IE5 (both win) and it worked just fine... #!/usr/bin/perl use strict; my $r = shift; $r->err_headers_out->add('Set-cookie' => 'cookie1=value1; domain=.laserlink.net'); $r->err_headers_out->add('Set-cookie' => 'cookie2=value2; domain=.lase

Re: my && param

2000-06-23 Thread Peter Haworth
> > How should I correctly make "Param" assignments availble to function_2 > and NOT to function_1 ??? > > #--- > sub function_1 { > blah > blah > } > > sub function_2 { > my @array = param('This_Param'); > > foreach (@array) { > my @{$_} = param($_); #

RE: Highly optimized mod_perl ?

2000-06-23 Thread pvlad
Well, with little knowledge I have about mod_perl if sys admin tells you that mod_perl slows down the system, before making changes to the program you should have at least the following: a) Memory utilization numbers (sorted by a process) b) CPU utilization numbers (sorted by a process) c) Wheth

Re: Advice about mod_perl vs. fastcgi (specific)

2000-06-23 Thread Vivek Khera
> "TF" == Todd Federman <[EMAIL PROTECTED]> writes: TF> cluster with Apache/mod_perl servers and static content on another TF> cluster just running Apache, but even the mod_perl_tuning doc suggests TF> that this is suboptimal for a heavily dynamic site. (Maybe it's not?) Having your images o

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Vivek Khera
> "J" == Justin <[EMAIL PROTECTED]> writes: J> and apache does not kick off a new child straight away.. MinFree is J> set to 2 .. as 12 becomes 11 becomes 10 becomes 9, my backend is J> getting less and less powerful and more and more swamped. When Make your min-free servers higher, and set

Re: followup to MaxChildRequests question ;-(

2000-06-23 Thread Vivek Khera
> "J" == Justin <[EMAIL PROTECTED]> writes: J> Its still worth stating for the purposes of getting into the J> modperl archive at least, that MaxChildRequests is to be avoided J> for modperl backend setups. I disagree. You just need to have enough back-ends to make sure that you don't over

Re: MaxChildRequests and modperl - issue

2000-06-23 Thread Vivek Khera
> "DH" == David Hodgkinson <[EMAIL PROTECTED]> writes: DH> If you take a large script, throw it at Apache::Registry, then you'll DH> be compiling the script every time the a diaghter respawns. No, it doesn't happen when the child process is "spawned" (what is this, OS/2? We "fork" around h

[OT] Re: ***JOB at idealab!***

2000-06-23 Thread Balazs Rauznitz
On Thu, 22 Jun 2000, josh schwartz wrote: [snip] > In addition, idealab! provides advice on strategy, branding and > corporate structure. idealab! public companies include GoTo.com, eToys, ^^ Here we go again ;)) -Bala

Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Steve van der Burg
In order to get a certain buggy, poorly-designed application from a well-known vendor to maintain its sessions in the face of the user's IP address changing (vendor doesn't understand that addresses may change between requests), I'd like to have Apache lie to the vendor's canned CGI app about i

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Vivek Khera
> "SvdB" == Steve van der Burg <[EMAIL PROTECTED]> writes: SvdB> That is, I'd like to set REMOTE_ADDR like so: SvdB> SvdB> # Feed vendor's crappy CGI code a fake address that won't change: SvdB> PerlSetEnv REMOTE_ADDR 1.2.3.4 SvdB> But is /cgi-bin running under Perl? I think what you hav

Re: [OT] Re: ***JOB at idealab!***

2000-06-23 Thread Jim Winstead
On Jun 23, Balazs Rauznitz wrote: > On Thu, 22 Jun 2000, josh schwartz wrote: > > [snip] > > > In addition, idealab! provides advice on strategy, branding and > > corporate structure. idealab! public companies include GoTo.com, eToys, >

Re: [advocacy] writing articles

2000-06-23 Thread Kevin Reichard
To follow up: Feel free to contact me at Apache Today (http://www.apachetoday.com) with any article ideas. Stas has contributed to the site, and we're always looking for more articles from the community. Plus, we do pay $. ;) --Kevin Reichard Stas Bekman wrote: Folks, if you think that you can wr

Re: [advocacy] writing articles

2000-06-23 Thread Vivek Khera
> "KR" == Kevin Reichard <[EMAIL PROTECTED]> writes: KR> Plus, we do pay $. ;) So I guess it makes sense to make your articles as many lines long as possible in order to maximize the value of $. ;-) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Steve van der Burg
>> Vivek Khera <[EMAIL PROTECTED]> wrote: > "SvdB" == Steve van der Burg <[EMAIL PROTECTED]> wrote: >SvdB> That is, I'd like to set REMOTE_ADDR like so: >SvdB> >SvdB> # Feed vendor's crappy CGI code a fake address that won't change: >SvdB> PerlSetEnv REMOTE_ADDR 1.2.3.4 >SvdB> > >But is

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Vivek Khera
> "SvdB" == Steve van der Burg <[EMAIL PROTECTED]> writes: SvdB> I agree. How a major vendor with lots of staff and billions of SvdB> dollars can get the basics wrong, I don't know. Ever used a MS product? ;-) Like that but work-around earlier today for Apache::Request to work around a MIM

Re: [advocacy] writing articles

2000-06-23 Thread Gunther Birznieks
They usually pay by the word rather than the line though. So it makes sense to say things several times but using different mechanisms. You know, kind of like going over an idea again but with a slightly different twist. Sometimes you can liken this to using different wording to discuss the sam

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Steve van der Burg
>Like that but work-around earlier today for Apache::Request to work >around a MIME formatting but in IE on the Mac. Lame. Taking your remote_ip hint, and reading the Eagle a bit more closely, I came up with this: In httpd.conf: PerlAccessHandler LHSC::FakeRemoteIP Here's the handler: #!/

maintaing global variable in PerlLogHandler

2000-06-23 Thread Jim Sproull
Hi All, I'm currently using mod_usertrack to maintain a session id for each request, then am logging this with my own perl Log handler. This is all in and working fine (thanks to a couple members of this list - Jacob Davies and Ian Kallen - thanks guys!). Unfortunately, since the cookie is se

Re: maintaing global variable in PerlLogHandler

2000-06-23 Thread Jim Winstead
On Jun 23, Jim Sproull wrote: > This all works fine. However, the get_sessionid and set_sessionid are > using a dbm file, which is locked and unlocked during each request. (I > know, I know). Obviously, this is a lot more load that is necessary. I > tried using a simple global variable (defin

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Dan Rench
On Fri, 23 Jun 2000, Steve van der Burg wrote: > Taking your remote_ip hint, and reading the Eagle a bit more closely, > I came up with this: > > In httpd.conf: > > > PerlAccessHandler LHSC::FakeRemoteIP > Why an Access handler? I realize it works, but a more appropriate phase would be Perl

Re: ErrorDocument, logging and error-notes question

2000-06-23 Thread Tom Mornini
On Thu, 22 Jun 2000, Jeff Macdonald wrote: > My thinking is that $error would contain the error recorded in the > error_log file. > > Instead $error is empty. Any thoughts? This works in very current versions of mod_perl. What are you running? -- -- Tom Mornini -- InfoMania Printing and Prepr

is PerlAddVar working?

2000-06-23 Thread Geoffrey Young
hi all... I've been trying all morning to access PerlAddVar variables as expected (see http://marc.theaimsgroup.com/?l=apache-modperl&m=95718409824646&w=2 and forward) I'm not sure if anyone tested Doug's patch (http://marc.theaimsgroup.com/?l=apache-modperl&m=95742001627308&w=2)

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Steve van der Burg
>> In httpd.conf: >> >> >> PerlAccessHandler LHSC::FakeRemoteIP >> > >Why an Access handler? I realize it works, but a more appropriate >phase would be PerlFixupHandler, since you aren't doing any access >control in your module. A couple other nitpicky points: you probably >should return 'DEC

RE: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Geoffrey Young
> -Original Message- > From: Dan Rench [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 23, 2000 12:33 PM > To: Steve van der Burg > Cc: [EMAIL PROTECTED] > Subject: Re: Simple program _setting_ REMOTE_ADDR - SOLUTION > > > On Fri, 23 Jun 2000, Steve van der Burg wrote: > > > Taking yo

Caching Net::LDAP connections

2000-06-23 Thread Yann Ramin
Hi, I've been using Net::LDAP in a mod_perl/Apache server for awhile and I have a question. What would I need to do to cache the Net::LDAP handler/connection, like Apache::DBI? Net::LDAP is not something I would consider "blazingly fast," and opening a new LDAP connection and binding on a pagel

Re: using a module to contain settings.

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Scott Alexander wrote: > package Mf7::Globals; > use strict; > use vars qw($VERSION); > my ( > $imgserver, > ); > $VERSION = '0.01'; > sub Initialize_globals { > $imgserver = 'http://www.musiciansfriend.com'; > } > 1; Okay, this is an easy one. You are dec

Re: ErrorDocument, logging and error-notes question

2000-06-23 Thread Jeff Macdonald
Embedded Perl version 5.00503 for Stronghold/2.4.2 Apache/1.3.6 C2NetEU/2412 (Unix) mod_perl/1.21 Tom Mornini wrote: > > On Thu, 22 Jun 2000, Jeff Macdonald wrote: > > > My thinking is that $error would contain the error recorded in the > > error_log file. > > > > Instead $error is empty. An

Re: ErrorDocument, logging and error-notes question

2000-06-23 Thread Tom Mornini
On Fri, 23 Jun 2000, Jeff Macdonald wrote: > Tom Mornini wrote: > > > > On Thu, 22 Jun 2000, Jeff Macdonald wrote: > > > > > My thinking is that $error would contain the error recorded in the > > > error_log file. > > > > > > Instead $error is empty. Any thoughts? > > > > This works in very cu

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 22 Jun 2000, at 17:51, Perrin Harkins wrote: > On Thu, 22 Jun 2000, Scott Alexander wrote: > > I then have an Initialize_globals function that I run to reset all the > > variables at the begining of a request. > Why would you reset all of your configuration globals at the beginning of > a reque

Re: using a module to contain settings.

2000-06-23 Thread Craig McLane
You could also export the variables (in which case @EXPORT_OK is preferable to @EXPORT). It still needs to be a global variable, but you won't need to refer to it with a fully qualified name. Craig On Fri, 23 Jun 2000, Perrin Harkins wrote: > On Fri, 23 Jun 2000, Scott Alexander wrote: > >

Re: Caching Net::LDAP connections

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Yann Ramin wrote: > I've been using Net::LDAP in a mod_perl/Apache server for awhile and I > have a question. What would I need to do to cache the Net::LDAP > handler/connection, like Apache::DBI? You could start with something like this: use vars qw($ldap); $ldap ||= Net:

Re: Apache does't behave well with mod_perl

2000-06-23 Thread Perrin Harkins
On Fri, 23 Jun 2000, Jakub Vosahlo wrote: > I have tried to compile mod_perl statically into httpd using axps. I have > received httpd file much bigger than an "empty" one, but httpd didn't know > anything about mod_perl directives inside httpd.conf (it complained about > not loaded shared module

[OT]Centralized Signal Handling

2000-06-23 Thread Paul
Hi, all. I've started writing a module which I hope to be able to release to CPAN, and would welcome any input. The inspiration for this module was an attempt to prevent problems that might arise from modules overwriting each other's signal handlers *without_even_knowing*. (I know it would be be

Apache::Request fails for Solaris 2.7/Apache 1.3.12/mod_perl 1.24/perl 5.6?

2000-06-23 Thread Eamon Daly
Subject says it all, really. I've tried building apache+mod_perl half a dozen ways, with CFLAGS and without, with DSO and with APXS. I've even tried recompiling perl 5.6 with -Ubincompat5005 and -Uuselargefiles. Test 2 always seems to fail; test 1 fails only sometimes. Any suggestions? Any other i

Re: followup to MaxChildRequests question ;-(

2000-06-23 Thread Justin
On Fri, Jun 23, 2000 at 09:54:49AM -0400, Vivek Khera wrote: > > "J" == Justin <[EMAIL PROTECTED]> writes: > > J> Its still worth stating for the purposes of getting into the > J> modperl archive at least, that MaxChildRequests is to be avoided > J> for modperl backend setups. > > I disagre

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 23 Jun 2000, at 14:45, Craig McLane wrote: > You could also export the variables (in which case @EXPORT_OK is > preferable to @EXPORT). It still needs to be a global variable, but you > won't need to refer to it with a fully qualified name. This is how we did the current site, and while it wor

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 23 Jun 2000, at 13:27, Perrin Harkins wrote: > On Fri, 23 Jun 2000, Scott Alexander wrote: > Okay, this is an easy one. You are declaring $imgserver as a lexical (my) > variable. When Perl finishes executing this file, lexical variables go > out of scope. You can fix this by making it a real

Re: Apache::Request and memory

2000-06-23 Thread Jeremy Howard
> Attached is a patch to libapreq that addresses this problem. > <...> Thanks for this, Jim. Unfortunately, I'm having some problems with the patch. When I try and upload a file greater than a couple of k, I get a segfault in httpd. Could you possibly email me your current working libapreq sourc