Re: Restarting named service

2002-04-19 Thread Bruno Connelly
Abd How can i restart the named service via mod_perl. Abd The script will be activated via a web page. Abd My apache is configured to use User: apache, Group: apache Abd Is ther any other way except usine User root directive in my Abd httpd.conf file Assuming you're running a

RE: Throttling, once again

2002-04-19 Thread Jeremy Rusnak
Hi, I *HIGHLY* recommend mod_throttle for Apache. It is very configurable. You can get the software at http://www.snert.com/Software/mod_throttle/index.shtml . The best thing about it is the ability to throttle based on bandwidth and client IP. We had problems with robots as well as

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-19 Thread PinkFreud
Here's a bit more information: Given two directives: $VirtualHost{$host}-{Alias} = [ '/perl/', $vhostdir/$dir/perl/ ]; $VirtualHost{$host}-{Alias} = $vhost{config}-{Alias}; The first works. The second does not. According to Apache::PerlSections-dump, %VirtualHost is *exactly*

Re: Throttling, once again

2002-04-19 Thread Marc Slagle
When this happened to our clients servers we ended up trying some of the mod_perl based solutions. We tried some of the modules that used shared memory, but the traffic on our site quickly filled our shared memory and made the module unuseable. After that we tried blocking the agents

Re: Throttling, once again

2002-04-19 Thread kyle dawkins
Guys We also have a problem with evil clients. It's not always spiders... in fact more often than not it's some smart-ass with a customised perl script designed to screen-scrape all our data (usually to get email addresses for spam purposes). Our solution, which works pretty well, is to have

Re: Apache::DProf seg faulting

2002-04-19 Thread Perrin Harkins
Paul Lindner wrote: But while I have your attention, why are you using Apache::DB at all? The Apache::DProf docs just have: PerlModule Apache::DProf Legacy knowledge :) I think it may have been required in the past, or perhaps I had some problems with my INC paths long-long ago..

Re: Throttling, once again

2002-04-19 Thread Peter Bi
If merely the last access time and number of requests within a given time interval are needed, I think the fastest way is to record them in a cookie, and check them via an access control. Unfortunately, access control is called before content handler, so the idea can't be used for CPU or

RE: Throttling, once again

2002-04-19 Thread Christian Gilmore
Bill, If you're looking to throttle access to a particular URI (or set of URIs), give mod_throttle_access a look. It is available via the Apache Module Registry and at http://www.fremen.org/apache/mod_throttle_access.html . Regards, Christian - Christian Gilmore Technology

Re: framesets/AuthCookie question

2002-04-19 Thread Michael Schout
On Wed, 17 Apr 2002, Peter Bi wrote: Fran: You may need to 1) add a few lines of code in AuthCookie to make your error code aware to other methods, and 2) have a dynamic login page that can interpret the code. Alternatively, you may try AccessCookie I posted. :-) The CVS version of

@DB::args not working on 5.6.1 and 1.26

2002-04-19 Thread Rob Nagler
It seems that DB::args is empty on mod_perl 1.26 and perl 5.6.1. This is stock Red Hat 7.2 (apache 1.3.22). The code which references DB::args works in perl 5.6.1. It also appears that the failure only occurs after the perl restarts. The first time Apache loads mod_perl, DB::args is being set

Re: Solaris 8 lockups

2002-04-19 Thread Tom Servo
Thank you, and Marc as well, it looks like it was a combination of both version options and having it compiled as a DSO. We've upgraded mod_perl and apache and no longer have mod_perl as a DSO, and except for new error messages popping up (nothing serious, mostly just slightly sloppy coding

RE: Throttling, once again

2002-04-19 Thread Jeremy Rusnak
Hi, I looked at the page you mentioned below. It wasn't really clear on the page, but what happens when the requests get above the max allowed? Are the remaining requests queued or are they simply given some kind of error message? There seem to be a number of different modules for this kind

RE: Throttling, once again

2002-04-19 Thread Drew Wymore
I came across the very problem you're having. I use mod_bandwidth, its actively maintained, allows via IP, directory or any number of ways to monitor bandwidth usage http://www.cohprog.com/mod_bandwidth.html Although its not mod_perl related I hope that this helps Drew -Original

Re: PDF generation

2002-04-19 Thread David Wheeler
On Wed, 03 Apr 2002 16:01:24, Drew Taylor [EMAIL PROTECTED] wrote: I can highly recommend PDFLib. It's not quite free in that you have to buy a license if you make a product out of it, but it's still cheap. Matt Sergeant has recently added an OO interface over the PDFLib functions with

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-19 Thread Salvador Ortiz Garcia
On Fri, 2002-04-19 at 01:43, PinkFreud wrote: Here's a bit more information: Given two directives: $VirtualHost{$host}-{Alias} = [ '/perl/', $vhostdir/$dir/perl/ ]; $VirtualHost{$host}-{Alias} = $vhost{config}-{Alias}; The first works. The second does not. According to

Re: Throttling, once again

2002-04-19 Thread Peter Bi
How about adding a MD5 watermark for the cookie ? Well, it is becoming complicated Peter Bi - Original Message - From: kyle dawkins [EMAIL PROTECTED] To: Peter Bi [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 19, 2002 8:29 AM Subject: Re: Throttling, once again Peter

Re: PDF generation

2002-04-19 Thread Sam Tregar
On Fri, 19 Apr 2002, Andrew Ho wrote: DWThis looks pretty good to me. Can anyone suggest how I might DWprogrammtically send a PDF to a printer once I've generated it in DWPerl/mod_perl? Use either Ghostscript or Adobe Acrobat Reader to convert to Postscript, then print in your normal

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-19 Thread PinkFreud
Log is attached. I'm amused with this line: handle_command (Alias /perl/ /home/vhosts/linuxhelp.mirkwood.net/perl/): OK That looks right, but I *still* get a 404 error: 404 Not Found

Re: Apache2 HellowWorld question

2002-04-19 Thread Randy Kobes
On Fri, 19 Apr 2002, Lihn, Steve wrote: Hi, I just downloaded Randy's win32 build of Apache2. I do not understand in httpd.conf: PerlSwitches -Mblib=C:\Apache2 PerlModule Apache2 Location /hello PerlResponseHandler Apache::HelloWorld SetHandler modperl /Location But in the

Re: Problem using Perl Modules under mod_perl

2002-04-19 Thread Stas Bekman
Per Einar Ellefsen wrote: At 21:12 19.04.2002, Sören Stuckenbrock wrote: Hi there, mod_perl-newbie needs help! I have a nasty problem using Perl Modules under mod_perl. I've developed a CGI-Application, that retrieves its configuration values from a module that gets included (with use)

Re: PDF generation

2002-04-19 Thread Stas Bekman
Andrew Ho wrote: Hello, DWThis looks pretty good to me. Can anyone suggest how I might DWprogrammtically send a PDF to a printer once I've generated it in DWPerl/mod_perl? Use either Ghostscript or Adobe Acrobat Reader to convert to Postscript, then print in your normal manner (if you