Re: PDF generation

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

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

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 > > PerlResponseHandler Apache::HelloWorld > SetHandler modperl > > > But in the directory, He

Re: Problem with 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: PDF generation

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

Re: PDF generation

2002-04-19 Thread Andrew Ho
Hello, DW>This looks pretty good to me. Can anyone suggest how I might DW>programmtically send a PDF to a printer once I've generated it in DW>Perl/mod_perl? Use either Ghostscript or Adobe Acrobat Reader to convert to Postscript, then print in your normal manner (if you usually use Ghostscript

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

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: framesets/AuthCookie question

2002-04-19 Thread Peter Bi
Michael: It is great to see custom_error(). Last time, it took me a few hours in hacking the whole module. :-( > > However, I dont think it will work for his problem because his javascript code > seems to launch a NEW REQUEST, thus loosing anything that was stored away in > $r->subprocess_env().

Re: Problem with 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. Ac

Apache2 HellowWorld question

2002-04-19 Thread Lihn, Steve
Hi, I just downloaded Randy's win32 build of Apache2. I do not understand in httpd.conf: PerlSwitches -Mblib=C:\Apache2 PerlModule Apache2 PerlResponseHandler Apache::HelloWorld SetHandler modperl But in the directory, HellowWorld.pm is under C:/Apache2/blib/lib/Apache2/Apache I thou

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 Message-

Re: Problem using Perl Modules under mod_perl

2002-04-19 Thread Per Einar Ellefsen
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") in every Script of the >appl

Re: Problem using Perl Modules under mod_perl

2002-04-19 Thread Frank Wiles
On Fri, 19 Apr 2002 21:12:35 +0200 (CEST) "Sören Stuckenbrock" <[EMAIL PROTECTED]> 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

Problem using Perl Modules under mod_perl

2002-04-19 Thread Sören Stuckenbrock
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") in every Script of the application. So far no problem. But when I try to set up

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 of

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 issu

Re: Apache/Mod_Perl in Production Env-- NOT Recommended in Windows?

2002-04-19 Thread Chuck Goehring
Per, We run Apache 1.x with mod_perl on Windows 2000. It has been in production for 2.5-3 years. It is rather lightly loaded. It runs a query system that accesses an Oracle database. It may have crashed twice in all that time. Previously, we used IIS and it would go off to lala land at least

Re: Inline generation of error document?

2002-04-19 Thread Bas A . Schulte
Hi all, On Thursday, April 18, 2002, at 04:58 PM, Geoffrey Young wrote: >> I'm a little confused (honestly). I want to handle parameter errors in >> a content handler. When there's a parameter missing in the URL, my >> handler returns HTTP_BAD_REQUEST. >> Now Apache sees the HTTP_BAD_REQUEST r

RE: Distributed Sessioning

2002-04-19 Thread Stathy G. Touloumis
Thanks for the response. If the systems were not supplied by third party vendors how do you think you would implement it? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > Richard L. Goerwitz III > Sent: Friday, April 19, 2002 1:12 PM > To: Stathy G.

RE: Throttling, once again

2002-04-19 Thread Wim Kerkhoff
On 19-Apr-2002 Bill Moseley wrote: > Also, does anyone have suggestions for testing once throttling is in place? > I don't want to start cutting off the good customers, but I do want to get > an idea how it acts under load. ab to the rescue, I suppose. wget supports recursive spidering. Or try

Apache::DProf seg-fault found

2002-04-19 Thread Sam Tregar
I think I've isolated the cause of my Apache::DProf seg-faults. The seg-fault occurs inside Devel::DProf's prof_mark() routine. When it occurs the magic PL_DBsub variable, known to Perl as $DB::sub contains: SV = PVGV(0x8208960) at 0x970927c REFCNT = 1 FLAGS = (GMG,SMG,MULTI) IV = 0 NV

Distributed Sessioning

2002-04-19 Thread Stathy G. Touloumis
Does anyone have experience with distributed sessioning (transparent login across networks)? If yes can you share your experiences? Thanks : )

RE: Problem Installing mod_perl + mod_ssl in Solaris 8 - Please H elp !

2002-04-19 Thread Fernando Munoz
I think the answer is here : http://supportforum.sun.com/freesolaris/techfaqs.html?techfaqs_3057 but now I'm confused about how to configure this... 32-bits 64-bits wise. The bottom line, I think, is the fact that ld is managed in a different way as expected by teh compiling process in make. --

@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 se

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 A

Re: Restarting named service

2002-04-19 Thread Jason Bodnar
Take it a step further, if you're using BIND 9 you can use HMAC keys to secure it. > 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

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-l

Re: Throttling, once again

2002-04-19 Thread Perrin Harkins
Hi Bill, > Wasn't there just a thread on throttling a few weeks ago? There have been many. Here's my answer to one of them: 004101c0f2cc$9d14a540$[EMAIL PROTECTED]">http://mathforum.org/epigone/modperl/blexblolgang/004101c0f2cc$9d14a540$[EMAIL PROTECTED] > Anyway, I remember Randal's Stonehen

[ANNOUNCE] Module::Use 0.05_01

2002-04-19 Thread James G Smith
Module::Use 0.05_01 has been uploaded to CPAN. It is also available at http://moya.tamu.edu/~jgsmith/Module-Use-0.05_01.tar.gz for those that want it before CPAN makes it available. If this version seems to fix some of the reported problems (mainly that it doesn't work :/), then it will be put u

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 Leade

Re: Throttling, once again

2002-04-19 Thread kyle dawkins
Peter Storing the last access time, etc in a cookie won't work for a perl script that's abusing your site, or pretty much any spider, or even for anyone browsing without cookies, for that matter. The hit on the DB is so short and sweet and happens after the response has been sent to the user

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 bandwidth

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: 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 altogether,