Re: modules to be left enabled in a mod_perl back-end server?

1999-10-07 Thread Doug MacEachern
On 1 Oct 1999, Stephen Zander wrote: "Stephen" == Stephen Zander [EMAIL PROTECTED] writes: Stephen Is the SetHandler functionaity of mod_mime available from Stephen within mod_perl somehow? This was the one ovbious Stephen problem I could see with removing everything.

RE: HTML::Embperl and 'undefined symbol: perl_eval_sv'

1999-10-07 Thread Doug MacEachern
On Sun, 3 Oct 1999, Gerald Richter wrote: When I use HTML::Embperl for instance like: perl -MHTML::Embperl -e 'HTML::Embperl::Execute(some_embperl.epl)' I got: perl: error in loading shared libraries: /usr/local/lib/site_perl/5.00561/i686-linux/auto/HTML/Embperl/Embperl.so:

Re: Make errors

1999-10-31 Thread Doug MacEachern
On Fri, 15 Oct 1999, John Whitehead wrote: I can succesfully make Apache and perl with the following versions ; apache_1.2.6 perl5.004_05 when trying to make mod_perl-1.21 mod_perl no longer supports 1.2.x, try 1.3.9 instead.

Re: setting cookies?

1999-10-31 Thread Doug MacEachern
On Mon, 18 Oct 1999, Wyman Eric Miles wrote: System: Solaris 2.6 Apache 1.3.9/mod_perl 1.19/gcc 2.8.1/perl-5.004.04 I'm using SecurID to authenticate for an Apache proxy server. I've written a little perl module that uses a username/tokencode returned by basic auth to validate a

Re: mod_perl with APXS plus Raven equals segfault

1999-10-31 Thread Doug MacEachern
try building Perl with Configure -Uusemymalloc, solaris+perl malloc don't seem to get along when mod_perl is a dso. you're better off to link static though, solaris system malloc is 25%-30% slower than using Perl's malloc On Mon, 18 Oct 1999, Steve Snodgrass wrote: I've been using mod_perl

Re: redirect after POST again?

1999-10-31 Thread Doug MacEachern
if you read POST data, then redirect, you need to do this before the redirect or apache will hang: $r-method_number(M_GET); $r-method('GET'); $r-headers_in-unset('Content-length'); On Wed, 20 Oct 1999, Ilya Obshadko wrote: Hello, Weird things: this simple plain

Re: Problem at startup (Apache.pm)

1999-10-31 Thread Doug MacEachern
try adding to httpd.conf: PerlModule Apache On Thu, 21 Oct 1999, Alessio Bragadini wrote: I am sorry to bother you with what seems a FAQ, but the solutions found on the list archive (do make install, check permissions, use PerlSetEnv PERL5LIB) are not working for me: after make make

Re: undefined reference problem

1999-10-31 Thread Doug MacEachern
On Thu, 21 Oct 1999, Scott Anderson wrote: am having the following errors trying to compile apache with mod_perl my mod perl configuration script looks like this perl Makefile.PL \ APACHE_SRC=/usr/local/src/apache_1.3.9 \ NO_HTTPD=1 \ PREP_HTTPD=1 \

Re: Apache-read timed out?

1999-10-31 Thread Doug MacEachern
sounds like somebody has already read the POST data before your code is reached. On Fri, 22 Oct 1999, Marler, Gordon wrote: I'm running mod_perl 1.21, Apache 1.39 on Solaris 2.5.1. I'm using the proxy example from pp. 374-381 of the "Writing Apache Modules" book, and I've come up with a

Re: Hanging process: detection and determination (was Re: Runawayprocesses)

1999-10-31 Thread Doug MacEachern
I've checked the Apache::SIG and $r-connection-aborted, but is there a way to "write" without actually writing, probably some control char will do? Something like: while(1){ $r-print("\0"); last if $r-connection-aborted; $i++; sleep (1); } have a look at what Eric

Re: Apache::SSI and lookup_uri and POST req fails

1999-10-31 Thread Doug MacEachern
On Tue, 26 Oct 1999, Pouneh Mortazavi wrote: i'm so close to getting apache::ssi to work correctly but right now my work has come to a halt... I've tracked the problem down to POST-ed forms + SSI + virtual includes + $r-lookup_uri, but i don't know how to fix it! I use Apache::SSI

Re: suggestion about PerlRun

1999-10-31 Thread Doug MacEachern
On Thu, 28 Oct 1999, Yasushi Nakajima wrote: Hello All I have made a module derived from PerlRun. It overrides only readscript() method in PerlRun. First I wrote as follows (essencial part only) package Apache::PerlRunFake; use Apache::PerlRun; @ISA = qw(Apache::PerlRun);

Re: forking from the main Apache process

1999-10-31 Thread Doug MacEachern
On Sat, 23 Oct 1999, Stas Bekman wrote: After investigating deeper into a hanging detection problem, I understood that I can quite easily write a monitor that will detect these processes and kill them off. I wrote a module Apache::SafeHang with help of Apache::Scoreboard that should solve

Re: Intentional Premature Finish in an Apache Module

1999-10-31 Thread Doug MacEachern
On Thu, 28 Oct 1999, Public Interactive wrote: I'd like to be able to prematurely end the thread of execution within a Perl apache module from someplace *other than* the PerlHandler entry point subroutine (usually "handler()"). That is, when I'm a few subroutines deep inside my module, I

Re: Memory Leaks?

1999-10-31 Thread Doug MacEachern
sounds like you have PerlFreshRestart On, try turning it Off. scan the archives for more info. On Fri, 29 Oct 1999, Ben Bell wrote: Hi, I'm using the Debian package of mod_perl (1.21) and apache 1.3.9 and I've noticed quite nasty memory leaks on server restart. I've noticed unresolved

Re: Profiling

1999-10-31 Thread Doug MacEachern
On 31 Oct 1999, Greg Stark wrote: Does anyone have any idea how much overhead Apache::DProf or Apache::SmallProf add? Will it be possible to use these on a production system without having a severe impact? I wouldn't using profiling on a production site, there is considerable overhead

Re: Intentional Premature Finish in an Apache Module

1999-11-01 Thread Doug MacEachern
On Mon, 1 Nov 1999, John Siracusa wrote: On 11/1/99 2:32 AM, Doug MacEachern wrote: or use this undocumented feature: $Apache::ERRSV_CAN_BE_HTTP = 1; #set this anywhere, startup script is best die FORBIDDEN; mod_perl peeks at $@, if it's a 3 digit http status code, it propagates

Re: no luck uploading

1999-11-01 Thread Doug MacEachern
On Mon, 1 Nov 1999, Tubbs, Derric L wrote: I've been trying to use the "file" input field to upload some files and I'm having no luck at all. I first tried using Apache::Request with no luck and the error message "Can't call method "filename" without a package or object reference at ..."

RE: mod-perl logo

1999-11-01 Thread Doug MacEachern
On Mon, 1 Nov 1999, Kent, Mr. John wrote: Doug, I asked O'Reilly's permission to use the "camel and feather" without acknowledging them, and they said NO, see letter below from Edie Freedman. gad, I hate politics. Tim O'Reilly gave us permission to use the camel in the mod_perl logo two

Re: Using Apache::Util outside mod_perl

1999-11-01 Thread Doug MacEachern
So you can't use Apache::Util unless you are running Apache. exactly. but it might be possible with the SHARED_CORE configure option, that builds libhttpd.so, I've never tried though.

Re: follow-up - no luck uploading

1999-11-01 Thread Doug MacEachern
Our httpd's were spinning out of control on uploads until Doug sent us this patch. I don't know whether it made it into the distribution or not. yabut, that was only when netscape was trying to upload a directory name and lied about the content length. anyhow, the patch is in the

Re: PATH env garbled in mod_perl 1.21 patch

1999-11-01 Thread Doug MacEachern
On 1 Nov 1999, Greg Stark wrote: Was this ever resolved? yes, fixed in cvs. I'm concerned because for Oracle the environment variable ORACLE_HOME is critical and I think the environment corruption explains some of our past database problems. PATH was the only corrupted variable, this

Re: setting cookies?

1999-11-01 Thread Doug MacEachern
On Mon, 1 Nov 1999, Wyman Eric Miles wrote: I should have realized that. I managed to architect a kludge that sets the cookie but causes a fragment of the HTTP header to appear in the browser the first time. For now, I'm content with it. The next question is, when the cookie expires 2

Re: mod_perl programming logic error

1999-11-03 Thread Doug MacEachern
thanks Michael! I've committed your change to the cvs tree. actually, Eric Cholet did, mine failed, cvs rocks. need more coffee. cvs server: Up-to-date check failed for `Changes' cvs server: Up-to-date check failed for `src/modules/perl/Apache.xs' cvs [server aborted]: correct above errors

Re: PerlLogHandler - bytes always zero for proxy requests

1999-12-01 Thread Doug MacEachern
On Wed, 1 Dec 1999, Brian S. Craigie wrote: I presume from the lack of response that nobody knows the answer to this one? Or have I sent this to the wrong mailing list? Or is it a stupid question? or because you just posted on monday and some people have been extra super buzy with other

Re: Problems with dynamically-loaded perl modules under Solaris2.5.1

1999-12-13 Thread Doug MacEachern
are you still stuck on this? did you link mod_perl static or dso? if dso, try static. you can also try configuring Perl with -Dusemymalloc=n, but that comes with a large performance hit. I've never had a problem with solaris and any combo of mod_perl/Perl On Mon, 1 Nov 1999, Dan Rench wrote:

RE: no luck uploading

1999-12-13 Thread Doug MacEachern
On Mon, 1 Nov 1999, Tubbs, Derric L wrote: Well, I finally got it to work with Apache::Request. I had to do "$args = Apache::Request-new($r);" and "$file = $args-upload;" in the handler sub and then pass $args and $file to any other subs that needed it. Maybe this is normal but if so I was

Re: PerlFixupHandler vs. PerlHandler

1999-12-13 Thread Doug MacEachern
On Mon, 1 Nov 1999, James G Smith wrote: I have some code working, but I'm curious as to why it has to work in the way it does. The code: package My::TAMU; sub handler ($$) { my $class = shift; my $r = shift; if($r-current_callback eq "PerlHandler" || # this one makes sense

Re: setting cookies?

1999-12-13 Thread Doug MacEachern
On Mon, 1 Nov 1999, Robin Berjon wrote: At 11:44 01/11/1999 -0800, Doug MacEachern wrote: On Mon, 1 Nov 1999, Wyman Eric Miles wrote: The next question is, when the cookie expires 2 hours later, the initial SecurID user/password has long since expired. How do I cause the module to force

Re: suggestion about PerlRun

1999-12-13 Thread Doug MacEachern
thanks, I'll add this for 1.22. On Tue, 2 Nov 1999, Yasushi Nakajima wrote: Doug the handler() in Apache::PerlRun was not originally indended to be Doug subclassed. however, if somebody submits a patch to make is Doug subclass-able that doesn't break the way Apache::PerlRun currently works,

Re: referenced symbol not found error

1999-12-13 Thread Doug MacEachern
you need the cvs snapshot of mod_perl to use 5.005_62+, or wait for 1.22 On Tue, 2 Nov 1999, Arkadiy Goykhberg wrote: *This message was transferred with a trial version of CommuniGate(tm) Pro* Hello, I'm trying to compile mod_perl-1.21 as DSO module for apache version 1.3.9 on Solaris 2.6

Re: hostname fails under Apache::Registry, but not as CGI??

1999-12-13 Thread Doug MacEachern
try Apache-request-get_server_name instead of hostname() it's cheaper too, since Sys::Hostname::hostname forks, at least once per-process. not so bad if you call it in the parent though (in a PerlRequire script), then all children have the cached results On Wed, 3 Nov 1999, Nick Urbanik wrote:

Re: Problems building

1999-12-13 Thread Doug MacEachern
On 3 Nov 1999, Greg Stark wrote: I'm trying to update to 1.3.9+1.21 but I'm having various problems: 1) The makefile seems to try to run ../apaci even though perl is two levels deep, so it can't find ../apaci, it would have to be ../../apaci === src/modules/perl gcc -I.

Re: mod_perl on Apache 2.0

1999-12-13 Thread Doug MacEachern
On Wed, 3 Nov 1999, Jeffrey Baker wrote: There was a short discussion a while ago about getting mod_perl working with Apache 2.0. Since Apache 2.0 can actually be built and run on a few platforms now, I think it is worth taking a lot at this for real. I started to fiddle with 5.005_63 and

Re: make fails

1999-12-13 Thread Doug MacEachern
did you ever get this sorted out? looks like an rpm version of Perl maybe? have you tried configuring/build Perl from source? On Thu, 4 Nov 1999, Eva Neuberger wrote: Hallo, I'm trying to install mod_perl_1.21 with apache 1.36 perl 5.005_03 and Linux Kernel 2.2.10 I follow the

Re: Unresolved References

1999-12-13 Thread Doug MacEachern
On Mon, 8 Nov 1999, Brad Bonkoski wrote: This message was sent from Geocrawler.com by "Brad Bonkoski" [EMAIL PROTECTED] Be sure to reply to that address. Hello, I am trying to build mod_perl and PHP together with apache and this is a sample of what I am getting: ===

Re: My doesn't it start ?

1999-12-13 Thread Doug MacEachern
try adding: PerlModule Apache to your httpd.conf On Tue, 9 Nov 1999, Shay Mandel wrote: Hi all, It is my first time I am building the apache with the mod_perl enabled. I have installed it as static module. Then I compiled the apache (1.3.9). Everything passed ok (I skipped the make test

Re: mod_perl crash

1999-12-13 Thread Doug MacEachern
more details please, Makefile.PL options, etc. On Thu, 11 Nov 1999, Dominic A. V. Amann wrote: I am trying to build apache 1.3.9 (or 1.3.anything) with mod_perl. It builds fine without, on libc-2.0.7 platform, using gcc 2.7.2.3 I have tried many options in the APACI make process, all

Re: Apache::Registry and 304 status code in log file

1999-12-13 Thread Doug MacEachern
see Apache::RedirectLogFix On Thu, 11 Nov 1999, Bill Moseley wrote: In an Apache::Registry script I'm print()ing Status: 304 Not Modified when the client sends an If-Modified-Since: header. The 304 error is returned to the client properly, but the log file shows a 200 status. Can

Re: Seg fault on fork w/ PerlModule

1999-12-13 Thread Doug MacEachern
can you get a stacktrace with gdb? see the SUPPORT doc for hints. On Tue, 16 Nov 1999, Tony Demark wrote: I have compiled the following: Apache 1.3.9 mod_perl 1.21 (PERL_AUTHEN PERL_LOG PERL_STACKED_HANDLERS) on: Ultra 10 Solaris 7 with: gcc

Re: module Safe ?

1999-12-13 Thread Doug MacEachern
On Thu, 18 Nov 1999, Ekaterina Ivannikova wrote: Hi All! I should have mentioned that there is a Safe.pm 2.06 in perl5 directory tree. But after browsing modperl archive I was under the impression that a special Apache::Safe was needed due to some subtle problems. Is it not so ? It seems

Re: multipart POST problems

1999-12-13 Thread Doug MacEachern
On Thu, 18 Nov 1999, John S. Evans wrote: I've been attempting to write a perl module that handles POSTs of type multipart/form-data, and have been having a rough time. I'm using Apache::Request to process the request. I have dumped the content-type of the incoming request, and verified

Re: Apache::Cookie confusion

1999-12-13 Thread Doug MacEachern
On Fri, 19 Nov 1999, John Siracusa wrote: Apache::Cookie seems to have two different interfaces...or maybe there are two different distributions of Apache::Cookie? Whatever it is, the interface seems different on two machines here at work. One has 5.004 and one has 5.005, but that

Re: Access handlers for CGI's...

1999-12-13 Thread Doug MacEachern
why don't you just use a PerlAuthenHandler? see chapter 6 online at modperl.com On Tue, 23 Nov 1999, Trevor Phillips wrote: I've written an Authentication Handler using the Access phase, where someone must validate themselves before accessing a resource. The way I've done it, if the client

Re: Limiting CPU (was Re: embperl pages and braindead sucking robots)

1999-12-13 Thread Doug MacEachern
My CPU-based limiter is working quite nicely. It lets oodles of static pages be served, but if someone starts doing CPU intensive stuff, they get booted for hogging my server machine. The nice thing is that I return a standard "503" error including a "retry-after", so if it is a legitimate

Re: VelociGen for Perl, Competetive Analysis?

1999-12-13 Thread Doug MacEachern
Here's a snip from an email that I just receved from one of your co-workers, Alex Shah [EMAIL PROTECTED] in response to this same email: ---begin quote Why the comparison with mod_perl? This was part of the agreement we made with Sun in order to bundle our product with their web

Re: Altering handler not working...

1999-12-13 Thread Doug MacEachern
the TypeHandler phase will override your changes, I think. try setting $r-handler with a PerlTypeHandler, apache stops after the first one returns OK, so mod_mime won't stomp your $r-handler settings in that case. On Thu, 25 Nov 1999, Trevor Phillips wrote: I'm trying to write an access

Re: Release for 1.22?

1999-12-13 Thread Doug MacEachern
On Fri, 26 Nov 1999, Ken Williams wrote: Hi, I've got an ISP running Apache/1.3.4 mod_perl/1.18, and I'm trying to get them to fix some of the broken functionality therein by upgrading to the latest versions. I really need the latest CVS snapshot so that Perl sections work correctly,

Re: Eagle Book - mod_hello.c, hello.pl :)

1999-12-13 Thread Doug MacEachern
On Mon, 29 Nov 1999, Michael Dearman wrote: ... When looking at http_config.h at the handler_rec structure, the elements don't seem to match the way they're used in the example in the book. Going to the book site, the src's for the examples are NOT available. *shrug* all of the book source

Re: PerlLogHandler - bytes always zero for proxy requests

1999-12-13 Thread Doug MacEachern
On Thu, 2 Dec 1999, Brian S. Craigie wrote: Hi Doug, Thanks and sorry if I looked impatient :-) nah, sorry if I looked like I thought you looked impatient ;-) I'm glad that this was spotted. I thought I was doing something wrong. I'm assuming you are referring to the cvs snapshot of

Re: mod_perl 1.21 - CGI.pm 2.56 error in phase other than content

1999-12-14 Thread Doug MacEachern
On Fri, 10 Dec 1999 [EMAIL PROTECTED] wrote: Does nay one know how to get round the bug in the above combination. When I create a new CGI in any phase other than Response I get a Can't call method "register_cleanup" on an undefined value at /usr/lib/perl5/5.00505/CGI.pm line 263. This

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-14 Thread Doug MacEachern
if you build with PERL_TRACE=1 and start the server like so: % setenv MOD_PERL_TRACE=1 % httpd -X you should get some helpful diagnotics. On Sat, 11 Dec 1999, Bill Marrs wrote: Hi, I've been using mod_perl successfully albeit minimally for a couple months now. I'm trying to tune

Re: more then one PerlTransHandler

1999-12-14 Thread Doug MacEachern
On 12 Dec 1999, Evgenii Bazarov wrote: Hi! I tried to set more then one PerlTransHandler but if I specify both on the same line, Apache says "syntax error", otherwise it see only the last one. make sure you have built the server with at least PERL_STACKED_HANDLERS=1 or EVERYTHING=1. if

Re: Newbie: Tough times with sfio

1999-12-14 Thread Doug MacEachern
On Sun, 5 Dec 1999, hamid khoshnevis wrote: Hello, I am a newbie modperl'er and I am tyring to get system calls to return data to modperl (via stdout). Based on what I have read, sfio need to be linked in. Has anyone successfully done so and does stdout gets directed properly. you can

Re: simple xml parsing within html

1999-12-14 Thread Doug MacEachern
On Thu, 9 Dec 1999, G.W. Haywood wrote: any suggestions on making HTML::Parser work faster Performance is a real issue in mod_perl systems, so I've put some work into this. Maybe it will spawn a thread. Here are a couple of suggestions for speeding up HTML::Parser. Apparently the

Re: Unloading a library

1999-12-14 Thread Doug MacEachern
On Tue, 7 Dec 1999, Matt Sergeant wrote: How can I completely unload a library and all memory associated with it, and unload any dso's connected with that library? For example, say I use XML::Parser in a Perl section - I don't want that hanging around - it's a big library, so I'd like to

Re: PerlFreshRestart and %INC

1999-12-14 Thread Doug MacEachern
On Fri, 3 Dec 1999, Tim Bunce wrote: ... But is that _really_ what PerlFreshRestart does? I thought it destroyed the entire perl interpreter before then recreating one from scratch? this is the way PerlFreshRestart works at the moment. the original implementation did destroy the interpreter

Re: Apache::StatINC problem with use base

1999-12-14 Thread Doug MacEachern
On Sun, 5 Dec 1999, Autarch wrote: I encountered a problem using Apache::StatINC with modules that have the directive: use base qw( SomeClass ); The error I got was the following: [Mon Dec 6 07:35:47 1999] [error] Inherited %FIELDS can't override existing %FIELDS at

Re: Name: overview

1999-12-14 Thread Doug MacEachern
On Sat, 4 Dec 1999, Victor Zamouline wrote: Let me overview the propositions that have been made: 1) Eagle, proposed by Ged Haywood. Copyrighted by O'Reilly, but it looks like this problem can be solved. 2) Hedgehog, proposed by Stas Bekman. 3) Oyster, proposed by Randy Harmon 4)

Re: Book: guestbook.cgi

1999-12-14 Thread Doug MacEachern
On Sun, 12 Dec 1999, Michael Dearman wrote: I've copied example 4-15 and multi-checked it, for the past couple of days. Finally used a copy of the example obtained from the book site. But still have problems. modperl.com has the book source tarball, including a newer version of the guestbook

Re: @INC and make test

1999-12-14 Thread Doug MacEachern
looks like the httpd you are running does not have Apache::Util linked in. EVERYTHING=1 should take care of that, which you can see using nm: % nm ../apache-1.3/src/httpd | grep Util 0809b800 T XS_Apache__Util_escape_html 0809b750 T XS_Apache__Util_escape_uri 0809b8a0 T XS_Apache__Util_ht_time

Re: Hanging processes

1999-12-14 Thread Doug MacEachern
On Fri, 10 Dec 1999, Tony Demark wrote: I am having a problem with hanging httpd processes. I have done some AV searches as well as investigated the list archives and did not find any conclusive answer to this problem. If I missed it, can someone point me in the right direction? If any

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-14 Thread Doug MacEachern
#1 0x403da306 in ?? () from /etc/httpd/modules/libperl.so broken record mod_perl+dso is not a stable mix, try linking mod_perl static /broken record

Re: Hanging processes

1999-12-14 Thread Doug MacEachern
On Tue, 14 Dec 1999, Tony Demark wrote: Doug, Tried what you suggest, but with seemingly disappointing results. (below) The hangs seem to come _after_ the logging phase - the heap just keep growing and the process takes up all available CPU, but it doesn't seem to be doing anything!

Re: troubleshooting seg fault/child exit

1999-12-14 Thread Doug MacEachern
[Tue Dec 14 15:44:22 1999] [notice] child pid 13243 exit signal Segmentation fault (11) -- ... If someone could please point me in the right direction or FAQ, I, and my sanity, would be most happy. there are quite a few tips on debugging core dumps posted between last night

Re: apache segfaults on mod_perl dlclose

1999-12-14 Thread Doug MacEachern
On Tue, 14 Dec 1999, Saar Picker wrote: Hrm. Does perl use 0x as a marker? yes, see malloc.c I thought once an sv was freed it gets a null value or something. sure, but with Perls before 5.005_60-ish, Perl's malloc overrides system malloc/free *everywhere*, not just for Perl

Re: troubleshooting seg fault/child exit

1999-12-14 Thread Doug MacEachern
What I find odd is that all of the sudden people seem to be coming out of the woodwork about this stuff. Whe I searched through mailing list archives, some of them going back years, I found something odd... Many people were talking about this same problem between December of last year

Re: Hanging processes [LONG with debugging output]

1999-12-15 Thread Doug MacEachern
(gdb) perl_get_sv("Apache::Constants::AUTOLOAD") Apache::Constants::OPT_EXECCGI what I was about to suggest trying is already in the modperl cvs Changes: preload Apache::Constants::OPT_EXECCGI() for Apache::{Registry,PerlRun} thanks to Chris Remshaw for spotting this w/ Apache::DProf so try

Re: [PATCH] Compiling mod_perl with ActivePerl

1999-12-21 Thread Doug MacEachern
On Tue, 7 Sep 1999, Jochen Wiedmann wrote: Hi, attached you find a somewhat larger patch as a first step in order to get mod_perl running with ActivePerl. This is mainly to get the public source tree in sync with my work: I am still far away from getting it running. What I did so far is

Re: Read query string on POST request?

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999, Tobias Hoellrich wrote: I pass a session id in the query string between invocations for my current project (only if the client does not support Cookies). My main handler is also responsible for creating an Apache::Request object right at the beginnig of the handler

Re: broken USE_APXS (was Re: Apache::Scoreboard - problem compiling)

1999-12-21 Thread Doug MacEachern
Anyone using USE_APXS has any ideas of why USE_APXS makes the installation incomplete? fixed now in cvs.

Re: Problems with dynamically-loaded perl modules under Solaris2.5.1

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999, Dan Rench wrote: On Mon, 13 Dec 1999, Doug MacEachern wrote: are you still stuck on this? Yes. To reiterate: Solaris 2.5.1 sparc, gcc 2.95, perl 5.005_03 (configured with Solaris hints), mod_perl 1.21, apache 1.3.9, mod_fastcgi 2.2.2. Everything works fine

Re: Another install question: CGI.pm not found

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999, Bill Moseley wrote: What obvious thing am I missing? During make test this gets written to the error log: Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7. that's a strange error, because 5.005+ reports the @INC paths, e.g.: % perl -MNotHere

Re: PerlModule/Require didn't work ??

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999 [EMAIL PROTECTED] wrote: hi, I was wondering why the PerlModule and perlRequire didn't work for me. I have a fresh installation of : apache 1.3.9 + mod_perl 1.21 (that is bundled in RedHat6.1), what was my surprise to see that when I try to use something like :

Re: Another install question: CGI.pm not found

1999-12-21 Thread Doug MacEachern
79) %grep cgi.pl t/logs/error_log Can't locate CGI.pm in @INC at /data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3. again, I don't think it's possible for 5.005+ to produce this error message without listing the contents of @INC. cgi.pl is generated from cgi.pl.PL and also

Re: [Re: [Re: again - more then one PerlTransHandler]]

1999-12-21 Thread Doug MacEachern
At least that's what I thought ! In fact now Apache lets me use more then one PerlTransHandler, but it doesn't care of what is the return codes are!!! Even I return OK, it still calls next registered handlers. Really weird! mod_perl does care. but, mod_perl stacked handlers are not

Re: Problem running LWP under modperl (LONG)

1999-12-21 Thread Doug MacEachern
On Tue, 21 Dec 1999, Barry Hoggard wrote: I can't get LWP::UserAgent to run correctly under modperl, but I can make it work from the command line or as a regular CGI. strange, works fine here. }, 'HTTP::Headers' ), '_rc' = 500,

Re: Core dump on graceful restart.

1999-12-21 Thread Doug MacEachern
(gdb) where #0 0x80f4d4b in do_clean_objs () #1 0x80f4ccf in visit () #2 0x80f4df2 in Perl_sv_clean_objs () #3 0x80c2418 in perl_destruct () #4 0x8062920 in perl_shutdown () #5 0x8063aee in perl_child_exit () do you create any global objects that don't go out of scope until the

Re: Attempt to free unreferenced scalar during global destruction.

2000-01-18 Thread Doug MacEachern
On Thu, 4 Nov 1999, Andrei A. Voropaev wrote: Hi! For some reason I get lots of 'Attempt to free unreferenced scalar during global destruction.' in my error log. Any one can give me a pointer where to search for the problem? it's most likely due to a buggy xs module. that message

Re: SegFaults caused by Apache::Cookie during ChildExit

2000-01-18 Thread Doug MacEachern
On Wed, 22 Dec 1999, Clinton Gormley wrote: I am using a home-baked session manager on my web site. I clean up expired sessions by called a child exit handlder and this all worked rather well. However, we have recompiled Perl, Apache, mod_perl and Perl modules with pgcc and a different

Re: your mail

2000-01-18 Thread Doug MacEachern
On Thu, 23 Dec 1999, Li,Yuan N.(NXI) wrote: I have fought hard quite a few days trying to add mod_perl1.21 onto apache 1.3.9 on HP 11. I use the c compiler comes with the machine, and installed Perl 5.00503 under my home directory /home/c015932/opt/perl(I do not have access to the root),

Re: a possible bug with Apache::Server::ReStarting

2000-01-18 Thread Doug MacEachern
Hi, While documenting the 'restart twice on start' apache's behavior, I've tested $Apache::Server::ReStarting and $Apache::Server::Starting. Perl section is executed twice -- OK. startup.pl is executed once -- OK. $Apache::Server::ReStarting never gets set! - I suppose it's a

Re: send_fd and timeout problem

2000-01-18 Thread Doug MacEachern
On Fri, 7 Jan 2000, Martin Lichtin wrote: Hi, I'm using send_fd() to send relatively large files. Apache's Timeout is currently set to 60s and indeed, mod_perl aborts as soon as the minute elapses. (error msg: mod_perl: Apache-print timed out). However, it shouldn't do that, right?

Re: Perl modules in apache configuration

2000-01-18 Thread Doug MacEachern
On Sun, 9 Jan 2000 [EMAIL PROTECTED] wrote: "Eric" == Eric writes: Eric On Sun, Jan 09, 2000 at 08:47:04PM +0300, [EMAIL PROTECTED] wrote: I'm trying to configure httpd.conf using Perl sections (mod_macro is not enough for me), but the result is weird. Eric Do you have a specific

Re: File upload bug in libapreq

2000-01-18 Thread Doug MacEachern
On Tue, 11 Jan 2000, Jim Winstead wrote: There appears to be a file upload bug in libapreq that causes httpd processes to spin out of control. There's a mention of this in the mailing list archives with a patch that seems to be a partial solution, but we're still seeing problems even with

Re: Patch to Apache::RedirectFixLog in mod_perl-1.21

2000-01-18 Thread Doug MacEachern
looks good, thanks David! On Tue, 11 Jan 2000, David D. Kilzer wrote: Hi, The patch below fixes a problem in Apache::RedirectFixLog when the URI being logged required use of a filename listed the DirectoryIndex directive. The solution is described in the following post by Doug

Re: alarm() in Apache::Registry

2000-01-18 Thread Doug MacEachern
On Thu, 13 Jan 2000, Bill Moseley wrote: At 08:50 AM 1/13/00 +0200, you wrote: Does anyone have experience using an alarm() call under Apache::Registry? http://perl.apache.org/guide/debug.html#Handling_the_server_timeout_case Should I set alarm(0) as my script "exits" or is it ok to

Re: Apache::Registry should allow script to _only_ set return code

2000-01-18 Thread Doug MacEachern
thanks Charles, I think your patch is the way to go for now, or something close to it for 1.22 On Thu, 13 Jan 2000, Charles Levert wrote: Hi. [ I use Apache 1.3.9 and mod_perl 1.21. ] I believe that there is a difference between the following two behaviors for an Apache module handler:

Re: Proxy example in eagle book does not work

2000-01-18 Thread Doug MacEachern
On Fri, 14 Jan 2000, Jason Bodnar wrote: A line in the proxy example of the eagle book on page 380 does not seem to work (entirely): The line: $r-headers_in-do(sub {$request-header(@_);}); what if you change that to: $r-headers_in-do(sub {$request-header(@_); 1}); ?

Re: a possible bug with Apache::Server::ReStarting

2000-01-18 Thread Doug MacEachern
On Wed, 19 Jan 2000, Stas Bekman wrote: Why? Some users need a control of what gets reloaded and what not on server start (Yes I know if you put in startup.pl file it loads only once) For example parsing and loading some heavy xml files... Why do you want to take it away? I think

RE: Proxy example in eagle book does not work

2000-01-19 Thread Doug MacEachern
On Wed, 19 Jan 2000, Jonas Nordström wrote: I had the same problem. What does the "1" mean? That the sub returns with a true value? yes, from ch9: =item do() This method provides a way to iterate through an entire table item by item. Pass it a reference to a code subroutine to be called

Re: Results of calling perl_shutdown in mp_dso_unload

2000-01-26 Thread Doug MacEachern
On Fri, 21 Jan 2000, Daniel Jacobowitz wrote: (with appropriate changes to unload DSOs after shutting down perl, of course). I still get memory leakage - that's not terribly surprising - but it is much less. It's on the order of about 24K/restart and is probably the fault of some module

RE: mod_perl 1.21 - CGI.pm 2.56 error in phase other than conten t

2000-01-26 Thread Doug MacEachern
from chapter 9 of wrapmod: There are a number of standard variables that Apache adds to the environment prior to invoking the content handler. These include DOCUMENT_ROOT and SERVER_SOFTWARE. By default, the complete C%ENV hash is not set up until the content response phase. Only variables set

Re: PerlRun and Exporter() vars

2000-01-26 Thread Doug MacEachern
On Mon, 27 Dec 1999, John M Vinopal wrote: More about the undef of package variables. Sure enough, the variables are nuked in PerlRun::flush_namespace(). This can be inhibited by removing them from the script's namespace before termination: my $name = __PACKAGE__ . '::';

Re: Status in httpd access log

2000-01-26 Thread Doug MacEachern
have a look at Apache::RedirectLogFix On Thu, 6 Jan 2000, Mark Nudelman wrote: I'm writing my first module using modperl, so I'm probably doing something really wrong, but I haven't been able to figure this out. I want my script to return an HTTP error code to the client, and I want that

Re: Perl modules in apache configuration

2000-01-26 Thread Doug MacEachern
if you compile modperl with PERL_TRACE=1 and setenv MOD_PERL_TRACE s then you should see some useful diagnostics when mod_perl is processing Perl sections. On Sun, 9 Jan 2000 [EMAIL PROTECTED] wrote: Hello! I'm trying to configure httpd.conf using Perl sections (mod_macro is not enough for

Re: Memory leak/server crashes

2000-01-26 Thread Doug MacEachern
there are hints in the SUPPORT doc on how to debug such problems. there was also several "Hanging process" threads in the past weeks with more tips, search in the archives for keywords gdb, .gdbinit, curinfo if you can get more insight from those tips, we can help more. On Sun, 9 Jan 2000,

Re: Help

2000-01-26 Thread Doug MacEachern
sounds like your script is running under mod_cgi, not mod_perl On Tue, 11 Jan 2000, Akio wrote: I´m programming in mod_perl and I'm trying to use libapreq-0.31 but when I call method new, I get the msg "Can't locate object method "new" via package "Apache::Request"". The package

Re: problems with module at root of web site

2000-01-26 Thread Doug MacEachern
On Wed, 12 Jan 2000, Sean Chittenden wrote: Mind if I ask a nit-pick of a performance question? Currently speed and performance are of upmost importance (I'm currently involved in a mod_perl vs JServ development race). That being said, isn't pushing a handler onto the request stack

RE: mod_perl bug (mod_perl 1.21; Apache 1.3.9).

2000-01-26 Thread Doug MacEachern
On Wed, 19 Jan 2000, John Hughes wrote: what happens if you preload Apache::Registry in httpd.conf: PerlModule Apache::Registry Didn't try that. But code examination seems to imply that it would have no effect. 1. Apache::Registry gets run, so: unless (defined

  1   2   3   4   5   6   7   8   9   >