Apache::Request->new() problem

2000-09-25 Thread Herrington, Jack
I have the same problem as one of the previous reporters with Apache::Request->new(). The problem occurs whether I call it after a 'use' or after a 'PerlModule' load. Perl returns the no 'new' method could be found for Apache::Request. My setup is: Apache 1.3.12 mod_perl 1.24 Perl 6.5 Redhat 6

Re: Can't locate object method "No" via package "such"

2000-09-25 Thread Alan E. Derhaag
Doug MacEachern <[EMAIL PROTECTED]> writes: > On 4 Sep 2000, Alan E. Derhaag wrote: > > > I upgraded to openssl-0.9.5a and recompiled apache w/mod_ssl and > > mod_perl defining the SSL_BASE to the apache src and now the thing > > won't start and complains about: > > > > Can't locate object met

Re: question: using Apache for non-HTML messages

2000-09-25 Thread David Alan Pisoni
Really all you need to do is send your response back like you would any response, just without the HTML formatting. If you wanted to be a bit more "correct", you could change the content-type of the respose so that it is not 'text/html'. (In your case, you might just make one up like 'applica

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Matthew Byng-Maddick
On Mon, 25 Sep 2000, Matt Sergeant wrote: > On Mon, 25 Sep 2000, Stas Bekman wrote: > > On Mon, 25 Sep 2000, Doug MacEachern wrote: > > > On Mon, 25 Sep 2000, Stas Bekman wrote: > > > > All you care about is to measure the time between email sending start and > > > > end (when the process continue

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Stas Bekman
On Mon, 25 Sep 2000, Matt Sergeant wrote: > On Mon, 25 Sep 2000, Stas Bekman wrote: > > > On Mon, 25 Sep 2000, Doug MacEachern wrote: > > > > > On Mon, 25 Sep 2000, Stas Bekman wrote: > > > > > > > All you care about is to measure the time between email sending start and > > > > end (when the

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Matt Sergeant
On Mon, 25 Sep 2000, Stas Bekman wrote: > On Mon, 25 Sep 2000, Doug MacEachern wrote: > > > On Mon, 25 Sep 2000, Stas Bekman wrote: > > > > > All you care about is to measure the time between email sending start and > > > end (when the process continues on its execution flow). Why should one >

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Stas Bekman
On Mon, 25 Sep 2000, Doug MacEachern wrote: > On Mon, 25 Sep 2000, Stas Bekman wrote: > > > All you care about is to measure the time between email sending start and > > end (when the process continues on its execution flow). Why should one > > care about the details of internal implementation.

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Doug MacEachern
On Mon, 25 Sep 2000, Stas Bekman wrote: > All you care about is to measure the time between email sending start and > end (when the process continues on its execution flow). Why should one > care about the details of internal implementation. i only skimmed the first part of this thread, but ass

Re: mod_perl guide corrections

2000-09-25 Thread Joe Schaefer
Doug MacEachern <[EMAIL PROTECTED]> writes: > > my $args = $q->param; # hash ref > > you mean parms() ? the Apache::Request::parms hash ref is tied, so > there are still method calls, but less than calling params(), which does > extra stuff to emulate CGI::params. I just looke

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Stas Bekman
On Mon, 25 Sep 2000, Doug MacEachern wrote: > On Fri, 8 Sep 2000, Stas Bekman wrote: > > > As Perrin has suggested, benchmark it an see what's faster. It's so > > simple. > > come on stas, benchmarking Net::SMTP vs. pipe to a program is nothing > close to simple, it is not something you can us

Re: Looking for docs for apache-2.0+perl

2000-09-25 Thread Doug MacEachern
On Thu, 21 Sep 2000, Armand wrote: > Is it possible to build perl into apache-2.0 like the equivalent of 1.3 > with mod_perl. I've been looking and can't seem to find any reference > to it. it's under development, see: http://perl.apache.org/from-cvs/modperl-2.0/ discussion on [EMAIL PROTECTED]

Re: dir_config and Apache::Table confusion

2000-09-25 Thread Doug MacEachern
On 21 Sep 2000, Bjørn Ola Smievoll wrote: > If I do this: > > $r->print($r->dir_config('key')); > > Then key is printed. > If I then do this: > > my $tab = $r->dir_config; > $r->print(Dumper($tab)); # Using Data::Dumper > > I get '$VAR1 = bless( {}, 'Apache::Table' )'; > It's empty

Re: usemymalloc && mod_perl

2000-09-25 Thread Doug MacEachern
On Sat, 16 Sep 2000, Ian Kallen wrote: > > I've seen some of the 'perl -V' outputs on this list over the years. Most > people have usermymalloc=n but I've a seen a number of Solaris cases that > have usemymalloc=y > > I have a system on Solaris 2.6 with usemymalloc=y and I have a very > infreq

Re: Value of ErrorLog directive via mod_perl

2000-09-25 Thread Doug MacEachern
On 15 Sep 2000, Bjørn Ola Smievoll wrote: > I need to retrieve the value of the ErrorLog directive (i.e. the path > & filename of the error_log), but I can't find a way to do it with > mod_perl. (The C api equivalent is the error_fname field in the > server_rec struct). this patch should work.

Re: compile runs great but won't execute

2000-09-25 Thread Doug MacEachern
On 15 Sep 2000, Alan E. Derhaag wrote: > apache_1.3.11 > mod_ssl-2.5.0-1.3.11 > mod_perl-1.24 > perl v5.6.0 > RedHat Linux 2.2.12-20 > > I compiled mod_ssl and mod_perl as DSOs and there were no errors.. a > few warnings but nothing really significant. When running configtest, > however, with

Re: mod_perl guide corrections

2000-09-25 Thread Doug MacEachern
On 14 Sep 2000, Joe Schaefer wrote: > 2) Apache::Request is better than your performance numbers indicate. > > The problem I have with your comparison with Apache::args vs Apache::Request vs CGI > is that your benchmark code isn't fair. You're comparing method calls against > hash-table lookup

Re: perl initialization per virtual host... is it possible

2000-09-25 Thread Doug MacEachern
On Thu, 14 Sep 2000, William Deegan wrote: > When I do that a "SetEnv" in my virtual host doesn't seem to get > passed to the startup.pl... > > Is that the expected behavior? yes, SetEnv isn't passed until the request time fixup phase. try PerlSetEnv, which will be set at startup time outside

Re: segfaulting httpd :(

2000-09-25 Thread Doug MacEachern
On Thu, 14 Sep 2000, Bruce W. Hoylman wrote: > > > "Ben" == Ben Turner <[EMAIL PROTECTED]> writes: > > Ben> this afternoon i compiled a fresh httpd (apache 1.3.12), > Ben> together with mod_perl 1.24. i'm on Solaris 8, running perl > Ben> 5.6.0. > > Sounds like what I happened

Re: tracking down why a module was loaded?;

2000-09-25 Thread Doug MacEachern
On Thu, 14 Sep 2000, Justin wrote: > Can anyone tell me the easiest slickest way of determining > what was responsible for requesting a module, having discovered > that it has been loaded when viewing perl-status? override the builtin require with CORE::GLOBAL::require. something like the below

[ANNOUNCE] HTTP::Monkeywrench 1.0 (new package)

2000-09-25 Thread Derek Cline
The URL: http://sourceforge.net/project/showfiles.php?group_id=7560&release_id=11892 has entered CPAN as: file: $CPAN/authors/id/C/CN/CNATION/Monkeywrench-1.0.tar.gz size: 14849 bytes md5: 89e5c6aab819ad7781f842cf566f9acd HTTP::Monkeywrench is a web site testing utility. S

Re: Typo crashes Apache process

2000-09-25 Thread Doug MacEachern
On Thu, 14 Sep 2000, Lupe Christoph wrote: > Hi! > > Sorry, I did not check if this is known problem. > > 8046b0c >perl_handler_ismethod(0x82b46c8,0x81e5f62,0x828ee0c,0x80e255c,0x82fa59c,0x82a5ce8) + >61 thanks for the solid report, but this is a bug long ago fixed in the cvs tree.

Re: tracking down segfaults

2000-09-25 Thread Doug MacEachern
On Tue, 12 Sep 2000, Bill Moseley wrote: > Just a quick question: > > I'm running on Solaris 2.6 and mod_perl 1.21 and have these nagging > segfaults that I've asked about before. I get five or ten a day out of say > 20K requests. > > I need to upgrade to mod_perl 1.24 before spending a lot of

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Doug MacEachern
On Fri, 8 Sep 2000, Stas Bekman wrote: > As Perrin has suggested, benchmark it an see what's faster. It's so > simple. come on stas, benchmarking Net::SMTP vs. pipe to a program is nothing close to simple, it is not something you can use Benchmark.pm to cover all the bases (e.g. tcpserver forki

Re: Writing to the client's socket from an XS module

2000-09-25 Thread Doug MacEachern
On Thu, 7 Sep 2000, Subhash Sankuratripati wrote: > Hello, > I would like to find out how can I write to the HTTP Client from an > XS module written in C being called from a Perl module running under apache. > > Even trying syswrite 1, "test" does not work from mod_perl. So > interna

RE: Can't locate object method "No" via package "such"

2000-09-25 Thread Jerrad Pierce
man null on Linux you need to do: mknod -m 666 /dev/null c 1 3 >-Original Message- >From: Doug MacEachern [mailto:[EMAIL PROTECTED]] >Sent: Monday, September 25, 2000 3:39 PM >To: Alan E. Derhaag >Cc: [EMAIL PROTECTED] >Subject: Re: Can't locate object method "No" via package "such" >

Re: Can't locate object method "No" via package "such"

2000-09-25 Thread Doug MacEachern
On 4 Sep 2000, Alan E. Derhaag wrote: > I upgraded to openssl-0.9.5a and recompiled apache w/mod_ssl and > mod_perl defining the SSL_BASE to the apache src and now the thing > won't start and complains about: > > Can't locate object method "No" via package "such" at /dev/null line 1. looks to

Re: Apache::ASP rand, srand and fork...

2000-09-25 Thread Doug MacEachern
On Tue, 19 Sep 2000, Joshua Chamas wrote: > Perhaps I should auto init srand() then for Apache::ASP > to make sure that its happening post fork? Something like > > if(! DONE FOR CURRENT PID) { >srand(); > } > > For reproducability within Apache::ASP, all that has to > happen is someone

Re: Accessing images from a different server

2000-09-25 Thread Carlos Ramirez
Create an Alias to the vault30 directory in your httpd.conf file, like so: Alias /vault30 /vault30 -Carlos     "Kairam, Raj" wrote: I have Apache 1.3.12 running on a HP-UX 11 (Machine_A). The document root is /usr/local/apache/htdocs. I need the ability to make images on a different HP-UX 10.20 (

RE: Accessing images from a different server

2000-09-25 Thread James Xie
I have similar configurations, this is what I did: Mount image directory on machine_b to /usr/local/apache/htdocs/images on machine_a, link image files as /image/.tif. -Original Message- From: Kairam, Raj [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 8:19 AM To: '[EMA

RE: Why it prompt Multiple time for Authentication ???

2000-09-25 Thread Christian Gilmore
Have you tried wrapping Apache::AuthenCache around Authen::Smb? It may help you out with the occasional communication issues with the backend PDC. Regards, Christian > -Original Message- > From: Jerrad Pierce [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 25, 2000 10:54 AM > To: 'S

RE: Why it prompt Multiple time for Authentication ???

2000-09-25 Thread Jerrad Pierce
This was covered previously, perhaps it should be covered in a FAQ? If your NT PDC is slow, occasionally an authentication attempt will take too long, and return a status, which the module mistakenly regards as an error and reprompts for authentication information >-Original Message-

Why it prompt Multiple time for Authentication ???

2000-09-25 Thread Sambit Nanda
Hi perl Experts Here is the problem : 1. I am using Apache 1.3.11 + openssl + mod _ssl + mod _perl + mod_php on my web server 2. I have the Module Installed call "Authen::Smb" for Authentication with Win NT PDC from Apache . Problem : I do not understand Some time My web s

Accessing images from a different server

2000-09-25 Thread Kairam, Raj
I have Apache 1.3.12 running on a HP-UX 11 (Machine_A). The document root is /usr/local/apache/htdocs. I need the ability to make images on a different HP-UX 10.20 (Machine_B) available for users from a web browser. The images are in a directory /vault30 which is exported on Machine_B and is nfs m

Re: question: using Apache for non-HTML messages

2000-09-25 Thread B. Burke
Here is an example of what I'm looking to do. GET /perl/app.pl?MODE=search&CITY=Dallas&STATE=TX&ID=195302 HTTP/1.0 Accept: text/html User-Agent: MyTestClient1.0 From: nowhere.com I want to replace the HTML request above with something like this: |MODE=search|CITY=Dallas|STATE=TX|ID=195302| I

Re: [OT] flock under win32

2000-09-25 Thread Alexander Farber (EED)
http://www.activestate.com/Products/ActivePerl/docs/lib/Pod/perlport.html#item_flock flock FILEHANDLE,OPERATION Not implemented (Mac OS, VMS, RISC OS, VOS). Available only on Windows NT (not on Windows 95). (Win32) and there is also this note in the same document: Don

Re: question: using Apache for non-HTML messages

2000-09-25 Thread Matt Sergeant
On Mon, 25 Sep 2000, B. Burke wrote: > > I'm using Apache/1.3.11 with mod_perl/1.22 on an AIX platform to serve > as an application server, with persistent ties into a MySQL database. > > My company is using an in-house socket API for data transfers. The > request messages in our API are somew

RE: [slightly OT] cache refusal problem with IE, http headers

2000-09-25 Thread Geoffrey Young
I know this thread is rather lengthy, and took a few turns along the way, but I ran across this link the other day and thought it might be of use for everyone on the list - it's an official explanation of how IE handlers caching via headers. there's also a few links in it that are worth noting as

question: using Apache for non-HTML messages

2000-09-25 Thread B. Burke
I'm using Apache/1.3.11 with mod_perl/1.22 on an AIX platform to serve as an application server, with persistent ties into a MySQL database. My company is using an in-house socket API for data transfers. The request messages in our API are somewhat similiar to an HTML GET request, in that we us

Re: [ANNOUNCE] new module ApacheBench

2000-09-25 Thread Stas Bekman
On Thu, 21 Sep 2000, Adi wrote: > It took a little longer than planned, but here it is. It is a Perl API to > the Apache ab tool. It took so long because we added a number of useful > features, mainly the ability to benchmark sequences of URLs instead of just > one. Very nice Adi! > Before I

Re: indexing and searching documents on your web server

2000-09-25 Thread T.J. Mather
> If you want something controllable via mod_perl then there are a couple of > things in the CPAN, under the DBIx hierarchy. If you're not bothered about > direct control, then you should check out htDig. one of these is DBIx::FullTextSearch - it does require a MySQL database though. it offers m

Re: Apache::Request server error??

2000-09-25 Thread Matthew Byng-Maddick
On Mon, 25 Sep 2000, Sophokles Zafeiris wrote: > I' m trying to run the file_upload.pl. script, that can be found in the eg > directory of the Apache::Request source file. I've installed the > Apache::Request but I get the following server error : > Can't locate object method "new" via package "

Apache::Request server error??

2000-09-25 Thread Sophokles Zafeiris
I' m trying to run the file_upload.pl. script, that can be found in the eg directory of the Apache::Request source file. I've installed the Apache::Request but I get the following server error : Can't locate object method "new" via package "Apache::Request" at /export/home0/www/cgi-bin/file_upl