Re: Error with apache with mod_perl

2001-08-01 Thread Doug MacEachern
On Mon, 30 Jul 2001, Mauricio Amorim wrote: Hi, my name is Mauricio 2) I install mod_perl 1.1.26 with the following options: cd mod_perl_1.1.26 perl Makefile.PL APACHE_SRC=../apache.1.3.20/src USE_APACI=1 USE_DSO=1 you should have seen this warning: Your Perl is uselargefiles enabled,

Re: Can't load mod_perl in Solaris 8

2001-07-13 Thread Doug MacEachern
On Fri, 13 Jul 2001, Jie Gao wrote: This is different from what I have been hearing for the past few years: Solaris' malloc is better than perl's. you're right, i just found this in the 5.6.1 announcement: :On some systems (IRIX and Solaris among them) the system malloc is :

Re: [patch] a more user friendly server failure report

2001-07-13 Thread Doug MacEachern
On Sat, 30 Jun 2001, Stas Bekman wrote: As we see at the list, sometimes users have a problem to start the server in the 'make test' stage and when they see: server failed to start! (please examine t/logs/error_log) many times this log file doesn't exist. So let's check whether the

Re: Mod Perl 1.26, ApacheSSL and Apache 1.3.20

2001-07-12 Thread Doug MacEachern
On Thu, 12 Jul 2001, The Doctor wrote: Why is this going on? you forgot to post your perl -V and Makefile.PL options

Re: Can't load mod_perl in Solaris 8

2001-07-12 Thread Doug MacEachern
On Thu, 12 Jul 2001, Javier Chicharro wrote: I've compiled mod_perl-1.26 (and I tried with 1.25 too) for Apache 1.3.20 in a Solaris 8. When I start apache I get this error : you forgot to post your perl -V and Makefile.PL options

Re: having problems getting started with mod_perl

2001-07-12 Thread Doug MacEachern
On Wed, 11 Jul 2001, Bruce Kleinman wrote: I'm a mod_perl newbie trying to get my first installation working, and I'm hitting a brick wall. I can get Apache to come up, but as soon as I try to access it, just using the machine and port as the URL, I get a core dump. make test doesn't work

Re: Can't load mod_perl in Solaris 8

2001-07-12 Thread Doug MacEachern
On Thu, 12 Jul 2001, Javier Chicharro wrote: perl Makefile.PL APACHE_SRC=../apache_1.3.20/src DO_HTTPD=1 USE_APACI=1 your original post had an error trying to load /opt/apache/libexec/libperl.so, but these options are for a static build. do you have an old modperl dso configured?

Re: Can't load mod_perl in Solaris 8

2001-07-12 Thread Doug MacEachern
On Thu, 12 Jul 2001, Ged Haywood wrote: Hi again, On Thu, 12 Jul 2001, Javier Chicharro wrote: Yes, I compiled my Perl using Solaris cc. Is there any reason you don't want to compile static? is there any reason he should? the only issue using dso with solaris (and any other Perls

Re: can't start apache-1.3.20 with mod_perl and Mason

2001-07-11 Thread Doug MacEachern
On Wed, 11 Jul 2001, Louis-David Mitterrand wrote: Will I have to build a debugging-enabled libperl to get relevant information? Or is this enough to understand the problem? libperld would help, all i can tell is that something in %SIG is being caught, which normally shouldn't happen at

Re: Error in PerlRun

2001-07-11 Thread Doug MacEachern
On Mon, 9 Jul 2001, Surat Singh Bhati wrote: Hi, I am not able to run the mod_perl scriptsd as with Apache::PerlRun, Apache::Registry is working fine. PerlRun says : filename not found or unable to stat and gives the 404 error. The file is exists there with proper

Re: APXS make problems with mod_perl 1.26

2001-07-11 Thread Doug MacEachern
On Wed, 11 Jul 2001, Neil Mansilla wrote: I've successfully performed the same APXS make with mod_perl 1.25 and 1.25_01, but it breaks with the following error with 1.26: perl Makefile.PL USE_APXS=1 \ WITH_APXS=/usr/local/apache_1.3.20/bin/apxs \ PERL_STACKED_HANDLERS=1

Re: PerlInitHandler and PerlSetEnv

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Gerald Richter wrote: The docs says: SetEnv directive Syntax: SetEnv variable value Context: server config, virtual host Status: Base Module: mod_env Compatibility: SetEnv is only available in Apache 1.1 and later. Sets an environment variable, which is then

RE: announce: mod_perl-1.25_01

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Christian Gilmore wrote: Hrm. Ok, I'll have to release new versions of my modules that have tests for mod_perl 1.26. At what release level do you expect this patch to be committed? well, i don't want to make any promises like i did for 1.26 :)

Re: Possible bug with ModPerl 1.25 and Escape_uri

2001-07-10 Thread Doug MacEachern
On Fri, 6 Jul 2001, Stef Telford wrote: Hello, I hope this is the right place to put this. I have some code that takes data from a database and encrypts it via Blowfish and CBC. Not a problem so far, the problems comes with sending it to the client. ... Now, if i look at the

Re: upgrading mod_perl/CGI.pm shows some weirdness

2001-07-10 Thread Doug MacEachern
On 6 Jul 2001, Peter Rooney wrote: machine 1: CGI.pm version 2.46 machine 2 (the new machine): CGI.pm version 3.02 3.02 is alpha, the README says: Version 3 of CGI.pm is in alpha state. It has significant performance improvements over the 2.X series, but is not stable. If you find a

Re: send_httpd_headers

2001-07-10 Thread Doug MacEachern
On Sun, 8 Jul 2001, Brooklyn Linux Solutions CEO wrote: Is there a way to know that headers have already been sent before send headers out? you can check for things that should be empty until send_http_header is called, e.g. unless ($r-header_in('Content-type')) { #header has not been

Re: can't start apache-1.3.20 with mod_perl and Mason

2001-07-10 Thread Doug MacEachern
On Mon, 9 Jul 2001, Louis-David Mitterrand wrote: Hi, After upgrading my installation to Apache-1.3.20 and mod_perl-1.25 as as a module I can't start apache anymore when httpd.conf contains: PerlRequire /etc/apache/perl/handler.pl And that file (for debugging purposes) is

Re: send_httpd_headers

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Doug MacEachern wrote: unless ($r-header_in('Content-type')) { i meant header_out, not header_in

Re: Knowing the current VirtualHost at server startup

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Robin Berjon wrote: Hi, I've been looking around for a way for a Perl section (or code called from it, or perhaps even loaded through PerlModule) to know the current VirtualHost in which it is, at server startup (ie without a request object handy). Apache-server

Re: duplicate libperl.so causes problems on Tru64

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Dave Hill wrote: Hi, I am using mod_perl-1.25_01 on Tru64 unix with apxs. The default packaging creates the DSO mod_perl as libperl.so. This causes problems on Tru64 unix as the loader cannot differentiate between libperl.so which is part of the PERL

Re: help about ap_pool in Perl

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Alberto Canzi wrote: Hi I need to use the ap_pool structure. In my Apache Module writing book is explained how to use it in C but nothing is said about using it in Perl. How does it work ? How may I use it in Perl? what do you need to use it for from Perl? much of

Re: swapping of mod_perl parent process / mlockall()

2001-07-10 Thread Doug MacEachern
On Tue, 26 Jun 2001, Adi Fairbank wrote: Is it correct that when the Apache/mod_perl parent process swaps to disk, a large part of it (swapped pages) becomes unshared? Even after the kernel restores the pages from swap, do they remain unshared? So once the parent process becomes

Re: push_handlers and PerlAuthenHandler troubles [second try]

2001-07-10 Thread Doug MacEachern
On Tue, 26 Jun 2001, Bolt Thrower wrote: My apologies if you've seen this twice. For a particular Location, I'd like to selectively (i.e., based on arbitrary criteria) determine whether a visitor needs authentication. So I set up a Location section in httpd.conf as follows:

Re: announce: mod_perl-1.25_01

2001-07-09 Thread Doug MacEachern
On Sat, 7 Jul 2001, Stas Bekman wrote: On Fri, 6 Jul 2001, Doug MacEachern wrote: all tests pass cleanly. cool. under bleed-perl (one week old compilation) (the rest is the same) there are some problems: (perl build args are at the end

Re: PerlInitHandler and PerlSetEnv

2001-07-09 Thread Doug MacEachern
this patch should fix the problem. you should also be able to s/PerlSetEnv/SetEnv/g, unless Embperl needs these variables before the fixup phase. Index: src/modules/perl/mod_perl.c === RCS file:

Re: announce: mod_perl-1.25_01

2001-07-09 Thread Doug MacEachern
On Mon, 9 Jul 2001, Christian Gilmore wrote: Doug, I didn't see in the announcement that the below fix is included in 1.25_01. Can you please confirm? the patch has not been committed and will probably wait until after 1.26. i'm concerned that the current patch might introduce bugs

Re: Accessing server config during parent startup

2001-07-09 Thread Doug MacEachern
On Mon, 9 Jul 2001, Robin Berjon wrote: cfg = (axkit_dir_config *) ap_get_module_config(s-module_config, XS_AxKit); try s-lookup_defaults instead of s-module_config see also: modperl-2.0/src/modules/perl/modperl_pcw.c where you can see howto access all of the config apache has

Re: RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-09 Thread Doug MacEachern
On Tue, 3 Jul 2001, James G Smith wrote: The current code I have uses %INC, but I wanted to write something like the following: sub use : immediate { # do stuff here if logging return CORE::use(@_); } you could just override CORE::GLOBAL::require. you don't need to override the

RE: modperl install without Apache src?

2001-07-09 Thread Doug MacEachern
On Sun, 8 Jul 2001, Ged Haywood wrote: Hi there, On Fri, 6 Jul 2001, Knox, Laurie A, NPONS wrote: I read somewhere that there were potential problems when running mod_perl and PHP together in Apache, but I haven't been able to find that info again Is this an issue? I fear it is.

Re: PerlInitHandler and PerlSetEnv

2001-07-09 Thread Doug MacEachern
On Tue, 10 Jul 2001, Gerald Richter wrote: Yes, this fixes the problem :-) cool. Embperl doesn't need them before the fixup phase, but sometimes you want different values for the environment variables for different directories, which doesn't work with SetEnv really? glancing at

Re: announce: mod_perl-1.25_01

2001-07-09 Thread Doug MacEachern
On Fri, 6 Jul 2001, Ken Williams wrote: [EMAIL PROTECTED] (Doug MacEachern) wrote: this is a 1.26 canidate, test reports most appreciated as always.. I just tested on Darwin (Mac OS X) with Apache 1.3.20 and using a simple 'perl Makefile.PL EVERYTHING=1' . All tests pass, with no warnings

RE: cvs commit: modperl-2.0/Apache-Test/lib/Apache TestConfigPerl.pm

2001-07-09 Thread Doug MacEachern
On Mon, 9 Jul 2001, Geoffrey Young wrote: die in modperl_startup.pl if modperl_{inc,extra}.pl die anyway, I thought modperl_extra.pl was supposed to be optional? it is still optional, but if it exists and dies, then mod_perl should propagate that. although, the $@ !~ /^Can.t locate/ is

Re: modperl install without Apache src?

2001-07-06 Thread Doug MacEachern
On Fri, 6 Jul 2001, Ged Haywood wrote: Hi there, On Thu, 5 Jul 2001, Knox, Laurie A, NPONS wrote: I was going to upgrade it to 1.25, but I don't have the Apache src. Why don't you just get it? there should be no need if apache was properly installed with a header tree. mod_perl can

Re: apache won't start, strange dynaloader problem...

2001-07-06 Thread Doug MacEachern
On Thu, 28 Jun 2001, Jim Woodgate wrote: [Thu Jun 28 16:04:01 2001] [error] Can't load '/usr/contrib/lib/perl5/site_perl/5.6.1/i686-linux/auto/Apache/Request/Request.so' for module Apache::Request: libapreq.so.0: cannot load shared object ^ file: No

Re: BUG PATCH (was: Strange status returns from perl_handler)

2001-07-06 Thread Doug MacEachern
On Wed, 23 May 2001, Julian Gilbey wrote: On Mon, May 21, 2001 at 06:36:54PM +0100, Julian Gilbey wrote: We've just upgraded a SunOS machine from Apache 1.3.9 + mod_perl 1.21 (dynamically linked) to Apache 1.3.19 + mod_perl 1.25 (statically linked). I have a CGI/Perl script, handled as

Re: Requests using If-Modified-Since cause response Set-Cookie tobe discarded

2001-06-22 Thread Doug MacEachern
On 21 Jun 2001, Randal L. Schwartz wrote: Uh, it seems a bit fishy to me. nothing's changed, but by the way, set this cookie please. Why change a cookie if nothing else has changed? don't gimme this 'fishy' mumbo jumbo, i'm willing to accept a valid reason why set-cookie shouldn't be

RE: Solaris mod_perl DSO...

2001-06-22 Thread Doug MacEachern
On 22 Jun 2001, Jay Thorne wrote: Hmm. I've tried this on perl 5.5.x and 1.25 on a linux box, and I still get the 4meg leak per HUP hi, for the nth time, 5.005 leaks, 5.6.1 does not.

Re: Requests using If-Modified-Since cause response Set-Cookie tobe discarded

2001-06-21 Thread Doug MacEachern
On Wed, 20 Jun 2001, Nenad Steric wrote: Hi, Thanks for your answer, saved me days of probably fruitless fidling around with modperl. Your solution solved my problems (see Sending Cookies on Page-Reload) the question remains if this violates some RFC's (or breaks some browsers), and if

RE: Solaris mod_perl DSO...

2001-06-21 Thread Doug MacEachern
On Thu, 21 Jun 2001, Paul G. Weiss wrote: I've done it with 5.6.1. There was a fairly detailed thread on it last week on how it was done. In order to avoid a memory leak on restart you need to build with a bleed modperl though. If you can start and stop your server you're fine with 1.25.

Re: Apache::Cookie-fetch fails silently

2001-06-19 Thread Doug MacEachern
On Fri, 15 Jun 2001, Rodney Broom wrote: I've got this handler that calls Apache::Cookie-fetch, no problem. It's tested and works fine. So I installed the same handler (same machine) on a second Apache instance, but now Apache::Cookie-fetch fails, causing the handler to terminate. No

Re: Setting an auth realm dynamically

2001-06-19 Thread Doug MacEachern
On Fri, 15 Jun 2001, Rodney Broom wrote: I (like everybody else) have a site that is wholy dynamically generated. As such, I can't alway set an auth realm in the config or in .htaccess. What I'd like to do is an access handler like this: sub handler { my $r = shift; if ($r-uri

Re: Requests using If-Modified-Since cause response Set-Cookie tobe discarded

2001-06-19 Thread Doug MacEachern
On Mon, 18 Jun 2001, Andrew Gilmartin wrote: I have PerlAuthenHandler handler that sets a cookie on authentication success. The cookie records, in part, the time of the last access to the site. Therefore for each access the cookie is updated. When a new document is accessed or a CGI script

RE: Confusion resolved (was: mod_perl DSO leaking on restart)

2001-06-19 Thread Doug MacEachern
On Tue, 19 Jun 2001, Christian Gilmore wrote: Doug, Will this patch make it into 1.26? yes. If so, is there a slated release date for 1.26? soon-ish. you can always configure: PerlSetEnv PERL_DESTRUCT_LEVEL 2 in the meantime.

Re: Confusion resolved (was: mod_perl DSO leaking on restart)

2001-06-19 Thread Doug MacEachern
On 19 Jun 2001, Vivek Khera wrote: Drat. Not here. I just sucked down the latest mod_perl CVS with this patch, and I still lose 9M per USR1... Lemme try some tracing to see what gives here. (FreeBSD 4.3, perl 5.005_03) i mentioned earlier in the thread 5.005_03 has leaks. although,

Re: [Patch] Apache-dso_module()

2001-06-18 Thread Doug MacEachern
On Mon, 18 Jun 2001, Philippe M . Chiasson wrote: In my case, I used it to work around the strange mod_perl behaviour under DSO (fixed in CVS) right, so that is no longer needed. any other examples? i hesitate on adding the feature because anything that needs to be conditional based on

Re: Install mod_perl on Solaris 2.7

2001-06-18 Thread Doug MacEachern
On Mon, 18 Jun 2001, Paul Lindner wrote: -Uusemymalloc \ ... PERL_CCEOPTS=-Dccflags='-DPERL_EMERGENCY_SBRK -DTWO_POT_OPTIMIZE -DPACK_MALLOC' these options are only in effect when using Perl's malloc, which -Uusemymalloc turns off. they are also all turned on by default in 5.6.0+

Re: Install mod_perl on Solaris 2.7

2001-06-18 Thread Doug MacEachern
On Mon, 18 Jun 2001, Paul Reynolds wrote: What versoin of mod_perl are you using? I tend to stay away from 1.25. care to share the problems you have with 1.25? if they are not fixed in cvs, now is the time to make them known to be fixed for 1.26.

Re: Confusion resolved (was: mod_perl DSO leaking on restart)

2001-06-18 Thread Doug MacEachern
ah ha, right, since i always have PERL_DEBUG=1, perl_destruct_level is always set to 2. good find! it should always be 2 for dso, this patch seems to fix USE_APXS too. --- src/modules/perl/mod_perl.c 2001/06/14 04:49:08 1.137 +++ src/modules/perl/mod_perl.c 2001/06/19 01:59:18 @@ -259,8

Re: Apache::StatINC patch

2001-06-14 Thread Doug MacEachern
thanks, this has been applied for 1.26-tobe. On Wed, 14 Mar 2001, Ilya Konstantinov wrote: Hi, While developing with mod_perl and Apache::ASP here at Aduva SID department, we've came across an annoying problem. Apache::ASP adds it's 'Global' directory to @INC. We naturally used it to

Re: untraceable uninit warnings

2001-06-14 Thread Doug MacEachern
On Wed, 7 Mar 2001, Graham Barr wrote: Does anyone have any idea what could be causing Use of uninitialized value at PerlHandler subroutine `VC::Delivery::Cycle::handler' line 1. to appear in the errorlog ? I even added local $SIG{__WARN__} = sub { warn here }; as the first

Re: Problem with $r-register_cleanup()

2001-06-14 Thread Doug MacEachern
On Wed, 7 Feb 2001 [EMAIL PROTECTED] wrote: Hi, I just ran into a problem with $r-register_cleanup() only sometime beeing called. This is mod_perl 1.24_01, perl 5.6.0, apache 1.3.14 compiled with gcc 5.6.0 on AIX 4.3.3. Here's a sample code (snippet): sub handler { #

Re: BSDI 4.1 libperl.so problem

2001-06-14 Thread Doug MacEachern
On Thu, 8 Feb 2001, Aaron Schlesinger wrote: Hi there. I am having a HELL of a time trying to get mod_perl compiled into apache 1_3.17. I built it using APXS and I really have tried everything I can think of. It makes, and builds without a problem. When I try to do a configtest (after

Re: CONNECT proxy rewrite

2001-06-14 Thread Doug MacEachern
On Thu, 1 Mar 2001, Chris Lewis wrote: Does anybody know how to alter the destination of a CONNECT transaction (in this case secure proxy request) in mod_perl? $r-uri(newplace:newport) in a Trans handler doesn't seem to do it. mod_proxy uses the parsed_uri, try this: use Apache::URI ();

Re: /dev/null problems

2001-06-14 Thread Doug MacEachern
On 28 Mar 2001, Matthew Kennedy wrote: Hello, From the mod_perl guide: syntax error at /dev/null line 1, near line arguments: Execution of /dev/null aborted due to compilation errors. parse: Undefined error: 0 There is a chance that your /dev/null device is broken. Try: %

Re: ChildInitHandler

2001-06-14 Thread Doug MacEachern
On 30 Mar 2001, Nikolaus Rath wrote: Hello! The following code doesn't work. I think that child_init_handler is never called. But there are no errors in the error log. sub child_init_handler($$) { my($this,$r) = @_; $r-log_error(Session Manager initialized); return OK; }

Re: mod_perl DSO leaking on restart?

2001-06-14 Thread Doug MacEachern
On Wed, 25 Apr 2001, Philip Mak wrote: On Thu, 26 Apr 2001, Stas Bekman wrote: There is also the strange case of mod_perl leaking memory on graceful restarts when compiled as DSO. But I don't feel like getting into this one quite yet. Hmm. My httpd was using 20 MB. I did

Re: Tracking down taint problems

2001-06-14 Thread Doug MacEachern
On Tue, 24 Apr 2001, Jamie Krasnoo wrote: I recently got this error: Insecure dependency in eval while running with -T switch. Callback called exit. Now, yes that tells me that something is wrong. What it doesn't tell me is where the problem is except for the fact that its somewhere in

Re: crash on exit with -X

2001-06-14 Thread Doug MacEachern
On Wed, 9 May 2001, Greg Wilson wrote: Hi. We're getting a segfault when httpd shuts down when using mod_perl on Red Hat 6.2, and I'd like to know whether anyone else has seen this as well. If I run httpd -X -f /home/gvwilson/httpd.conf under gdb, the stack trace is: can you rebuild

Re: Build problem (lperl)

2001-06-14 Thread Doug MacEachern
On Sun, 15 Apr 2001, Sean LeBlanc wrote: I'm trying to have mod_perl build apache during its own build, but I'm getting an error that I can't dig any answers up on. I have the libperl.so.5.6.0 in /usr/lib, but I'm uncertain how to get compiler to recognize that it is there. I ran ldconfig,

Re: sending a response without a Content-Type header

2001-06-14 Thread Doug MacEachern
On Mon, 16 Apr 2001, Matthew Darwin wrote: I'm buiding an HTTP gateway in mod_perl and trying to send back to the client exactly what I get from the remote server. The remote server doesn't set a Content-Type on the document being returned, so I don't want to set one either. However,

Re: Trying to trace a spinning httpd

2001-06-14 Thread Doug MacEachern
On 7 May 2001, Yusuf Goolamabbas wrote: Apache 1.3.19/Mod-perl 1.25 under Linux 2.2.19 Hi, I am trying to better understand Apache/mod-perl behaviour under this scenario. I have some CGI's which connect to various servers listening on different ports and collect the output and push them to

Re: mod_perl DSO leaking on restart?

2001-06-14 Thread Doug MacEachern
On Thu, 14 Jun 2001, Paul G. Weiss wrote: Sad to say, I'm not as fortunate as you. I'm leaking ~4.4Mb which each HUP (I haven't tried USR1). I'm also using Perl 5.6.1 and 1.25_01-dev (the CVS snapshot modperl_20010614113010.tar.gz). I'm doing a PerlRequire if that is significant. One

Re: Getting unbuffered output from a subprocess

2001-06-14 Thread Doug MacEachern
On Tue, 27 Mar 2001, Andrew Ho wrote: Hello, So, when doing a CGI and needing to execute a subprocess with input based on user input, I always do a open()-fork()-exec() like so: ... When using a mod_perl script, I use Apache::SubProcess and the above stuff still works. However, let's say

RE: Tracking down taint problems

2001-06-14 Thread Doug MacEachern
On Thu, 14 Jun 2001, Rob Bloodgood wrote: Seriously, tho, do you think you could come up with a short list of definitions for those macros? I was pretty excited to see them, once, except that I couldn't make them work. sigh Even a comment w/ a usage: AvFILL(address) most of them (the C

Re: Finding AuthUserFile name with the request object.

2001-06-14 Thread Doug MacEachern
On Sat, 5 May 2001, Rodney Broom wrote: Hi all, I'm trying to add a little bit more security to a running app. In this app, I'd like to be able to confirm what physical file was used in the 'AuthUserFile /path/to/pass.db' statement. This file choice needs to be dynamic, so I can't simply

RE: NameWithVirtualHost

2001-06-14 Thread Doug MacEachern
On Thu, 17 May 2001, Geoffrey Young wrote: well, you're not using Apache::Registry (which uses the $Apache::Registry::NameWithVirtualHost global) but Apache::RegistryNG (for which there's no corresponding $Apache::RegistryNG::NameWithVirtualHost :) he used Apache::RegistryNG in the

Re: Getting the wrong URL

2001-06-14 Thread Doug MacEachern
On 1 Jun 2001, [EMAIL PROTECTED] wrote: OK, I think I have solved this problem, but I would like to run my solution by you folks, and see if it makes any sense. What we found, on a more thorough code review, was that a number of the handlers were doing a redirect by calling send_cgi_header,

Re: PerlSetEnv scoping (again)

2001-06-14 Thread Doug MacEachern
i will add this to the ToDo to look at before 1.26. in the meantime, if you don't need to access these variables before the fixup stage and don't need %ENV to be inherited by a forked program, try changing PerlSetEnv to SetEnv. On Sat, 2 Jun 2001, Roman Maeder wrote: back in 1998 and 99 there

Re: errors installing Apache 1.3.19/mod_perl 1.25 on RedHat 6.1

2001-06-14 Thread Doug MacEachern
On Tue, 10 Apr 2001, Jonathan Swartz wrote: % ./configure --activate-module=src/modules/perl/libperl.a ... %Config is not exported by the Apache::ExtUtils module at -e line 0 this is a bug. newer mod_perl's override %Config::Config using Apache::ExtUtils, which when you build inside the

Re: Resetting STDIN after r-read

2001-06-14 Thread Doug MacEachern
On Fri, 8 Jun 2001, Rodney Broom wrote: OK, here's what the solution was. According to Doug in a posting that I found in an archive search, mod_perl's STDIN is really just a Perl glob, and not a file handle. So instead of reading from it (and thereby emptying the file handle named STDIN so

Re: Make Test problems...

2001-06-14 Thread Doug MacEachern
On Sun, 10 Jun 2001, Ian (the webguy) wrote: ... I'm not sure what's causing this. When I telnet to port 8529 and try to get /test.html, I get snip !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN HTMLHEAD TITLE403 Forbidden/TITLE this is a bug in the test suite, permissions problem if you

Re: mod_perl DSO leaking on restart?

2001-06-14 Thread Doug MacEachern
On Fri, 15 Jun 2001, Paul G. Weiss wrote: alignbytes=8, usemymalloc=y, prototype=define ^ ok, here's why i kept asking for perl -V. i don't see Perl's malloc.c ever release its memory pool. when usemymalloc=y, free() only puts memory back into Perl's pool

Re: DSO mod_perl HUP memory leak

2001-06-14 Thread Doug MacEachern
On Thu, 14 Jun 2001, Paul G. Weiss wrote: I know that this is an ongoing problem, but I seem to remember that someone somewhere had a patch that reduced the size of the memory leak on restarts to a manageable size. Has this patch been applied to the CVS version? If not, can some kind soul

Re: [Patch] Apache-dso_module()

2001-06-13 Thread Doug MacEachern
On Fri, 25 May 2001, Philippe M . Chiasson wrote: I know I posted this patch a while ago, but I am looking thru a few patches I have and I thought I might re-post this one along with the rest This module allows one to do Apache-dso_module('module_name.c') and it will be true only of the

Re: [Patch] apxs location forgotten in MyConfig.pm

2001-06-13 Thread Doug MacEachern
On Fri, 25 May 2001, Philippe M . Chiasson wrote: When building mod_perl with apxs as a DSO, MyConfig.pm looses track of the location of apxs. Therefore, when using 3rd parties perl modules that require some access to Apache information, like Apache::src-new-inc, it will most likely fail,

Re: [Patch] perl Makefile.PL PREFIX=/foo/bar breakage

2001-06-13 Thread Doug MacEachern
On Fri, 25 May 2001, Philippe M . Chiasson wrote: When passing a PREFIX=/foo/bar to Makefile.PL, all the perl .pm will get installed under /foo/bar/lib/site_perl/perl-version/perl-arch but mod_perl.so isn't aware of that. So, mod_perl will refuse to start, failing to locate Apache.pm. My

Re: BUG PATCH (was: Strange status returns from perl_handler)

2001-06-13 Thread Doug MacEachern
On Wed, 23 May 2001, Julian Gilbey wrote: Right, here's a patch. This line of code was erroneously removed some time between version 1.21 and 1.25 of mod_perl. see Changes: fix bug where Apache::send_http_header was resetting r-status = 200 thanks to brian d foy for the spot the problem is

Re: segfault on subrequest?

2001-06-13 Thread Doug MacEachern
On Thu, 15 Mar 2001, Pierre Phaneuf wrote: I have a PerlTransHandler that is very simple: the problem is likely that your trans handler is recursing. try adding this to prevent recursion: sub handler { my($r) = @_; return unless $r-is_main; my($info); $info =

Re: Segfault on ppc-linux with modperl-1.25 with Apache 1.3.19 whencalling $r-send_fd()

2001-06-13 Thread Doug MacEachern
On 19 Mar 2001, Mark Lipscombe wrote: open ($FH, $fname); ... $r-send_fd($FH); you didn't check the return value of open(); patch below will check if the filehandle is NULL and croak rather than segfault. Index: src/modules/perl/Apache.xs

Re: Efficient pre-loading of symlinks and virtual directories

2001-06-13 Thread Doug MacEachern
On Thu, 29 Mar 2001, Stas Bekman wrote: The latest policy is mod_perl-1.3 doesn't accept any new features and provides only bug fixes. All the development goes into 2.0. i think you mean mod_perl-1.xx :) and, its Apache::Registry that doesn't accept new features. Apache::RegistryNG and

Re: accessing SSL environment data in Perl*Handler

2001-06-13 Thread Doug MacEachern
On Wed, 4 Apr 2001, Paul wrote: Though I feel rather foolish, the fact remains that I can't seem to find my SSL environment variables. httpd.conf has Directory / SSLVerifyClient require SSLOptions+StdEnvVars # ... /Directory Exactly when and where are they set?

Re: installating mod_perl-1.25/apache_1.3.19/perl 5.005_02/solaris5.6

2001-06-13 Thread Doug MacEachern
On 10 May 2001, qazi Ahmed wrote: gcc -O -I/usr/local/lib/perl5/sun4-solaris/5.004/CORE -I/usr/local/inusr/local/lib/perl5/sun4-solaris/5.004/CORE -I../../os/unix -I../../i/../apaci` -c Apache.c perl /usr/local/lib/perl5/ExtUtils/xsubpp -nolinenumbers -typemap /us Usage: xsubpp [-v] [-C++]

Re: can not redirect on POST w/ CGI.pm

2001-06-13 Thread Doug MacEachern
On Wed, 13 Jun 2001, David Young wrote: I've found that if I post to this PerlAccessHandler, I get no response: ... mod_perl/1.24 this problem is fixed in 1.25, from Changes: fix $r-read() so it will not block if all data has already been read and so that Apache will not hang during

Re: credit card processing

2001-05-24 Thread Doug MacEachern
On Wed, 23 May 2001, Adam Prime wrote: I was looking through the mod_perl archives and saw a post from doug about a credit card processing system called 'creditor' i looked on the covalent web site, but i couldn't find any info. Did this thing ever see the light of day? yes, credator

Re: Cutting down on the DEBUG bloat...

2001-05-10 Thread Doug MacEachern
On Tue, 10 Apr 2001, Paul Lindner wrote: Hi, As part of my ongoing effort to streamline my mod_perl apps, I've come to discover the joy of constant subroutines and perl's ability to inline or eliminate code at compile time. I have a solution that works, but would be interested in seeing

Re: modify Server header via a handler

2001-05-08 Thread Doug MacEachern
On Wed, 2 May 2001, Matt Sergeant wrote: Right, but the problem is you can't do this after module initialization (which is where mod_perl adds it's bits), but the PerlModule's are loaded after that time, so you can't do it from Perl, at least not without a major re-design of the mod_perl

Re: [phil@fifi.org: Bug#85328: New method $req-allowed() forlibapache-mod-perl]

2001-05-01 Thread Doug MacEachern
On Fri, 9 Feb 2001, Daniel Jacobowitz wrote: [please maintain the CC's] I just received the following bug report on the Debian bug tracking system. The patch seems to apply to 1.25; is it a good idea? thanks, applied to cvs for 1.26-tobe. (and sorry for the delay)

Re: [PATCH] [phil@fifi.org: Bug#86964: One more method ( patch)for libapache-mod-perl]

2001-05-01 Thread Doug MacEachern
On Sun, 4 Mar 2001, Daniel Jacobowitz wrote: Here's another reasonable-looking patch from Philippe Troin; it exposes child_num() in Apache::Connection. i hesitate adding this to Connection.xs at this point since it is 1.3 specific. but i would be happy to include it as an new method

Re: Much Todo about nothing

2001-04-27 Thread Doug MacEachern
On Fri, 27 Apr 2001, Paul Cotter wrote: If this is the wrong place to post then please advise [EMAIL PROTECTED] is the place for 2.0 FYI: At http://perl.apache.org/from-cvs/modperl-2.0/ when extracting modperl-2.0_20010427110246.tar.gz there is a file called Todo and a directory

Re: Is mod_perl on win32 possible??

2001-04-27 Thread Doug MacEachern
On Fri, 27 Apr 2001, Gunther Birznieks wrote: But someone has to care enough to put the work into it. If you care enough, you can contribute your time to making this happen. :) if anybody wants to invest time in this, it must be done in 2.0. the framework is already there for multithreaded

Re: an unusual [job request] + taking mod_perl to the commercialworld

2001-04-27 Thread Doug MacEachern
On Sat, 28 Apr 2001, Stas Bekman wrote: Hey, we have a product -- mod_perl. All we need is to nicely pack it, start selling it, support it and put the money back into mod_perl RD. Covalent does this already. all of the bundle products include mod_perl, and anybody can buy support packages

Re: an unusual [job request] + taking mod_perl to the commercialworld

2001-04-27 Thread Doug MacEachern
On Sat, 28 Apr 2001, Stas Bekman wrote: Oh, I didn't know that [Covalent sells mod_perl]. I guess that's because I'm not on the buyer side. Does it announce this fact? So why don't we have a link to Covalent from the perl.apache.org site? I think this is very essential for mod_perl to tell

Re: [Patch] Apache-dso_module() to find if a module is loaded asDSO or not

2001-04-25 Thread Doug MacEachern
On Thu, 26 Apr 2001, Stas Bekman wrote: sure, but that's a different matter. I say that PerlModule and PerlRequire have a bug, which should be fixed. It's just that your problem made me reiterate the problem. patch below fixes. problem was the reference to @Apache::ReadConfig::PerlConfig

Re: cvs commit: modperl/src/modules/perl mod_perl.c

2001-04-17 Thread Doug MacEachern
On Wed, 7 Mar 2001, Ask Bjoern Hansen wrote: On 6 Oct 2000 [EMAIL PROTECTED] wrote: dougm 00/10/06 13:18:29 Modified:t/internal error.t src/modules/perl mod_perl.c Log: more for the "Apache::send_http_header was resetting r-status = 200" fix

sourcegarden (fwd)

2001-02-08 Thread Doug MacEachern
-- Forwarded message -- Date: Thu, 1 Feb 2001 18:52:02 +0100 From: Emmanuel Pierre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: sourcegarden hi doug, I have a forbidden on this site pointed by perl.apache.org http://modperl.sourcegarden.org/ Cordialement,

Re: Cannot make mod_perl on *@!* RH Linux :(

2001-01-31 Thread Doug MacEachern
On Tue, 30 Jan 2001, Nick Tonkin wrote: When I run the perl Makefile.PL command like that (without the SSL_BASE directive) I get: Error: Cannot find SSL header files in any of the following dirs: Error: . /usr/include /usr/include/ssl/ /usr/local/include /usr/local/include/ssl So I

Re: Runaways

2001-01-31 Thread Doug MacEachern
On Mon, 29 Jan 2001, Robert Landrum wrote: I have yet to solve the runaway problem, but I came up with a way of identifying the URLS that are causing the problems. First, I added the following to a startup.pl script... $SIG{'USR2'} = \apache_runaway_handler; setting that to

Re: Problems w/ mod_perl 1.24_01 apache 1.3.14 -- causing segmentation faults.

2001-01-31 Thread Doug MacEachern
On Fri, 26 Jan 2001, wells wrote: I've been trying to install mod_perl 1.24_01 the following way: (with perl 5.6.0) perl Makefile.PL \ APACHE_PREFIX=/usr/local/apache \ APACHE_SRC=../apache_1.3.14/src \ DO_HTTPD=1 \ USE_APACI=1 \ EVERYTHING=1 \ APACI_ARGS='--enable-module=rewrite

Re: Problems

2001-01-31 Thread Doug MacEachern
On Fri, 26 Jan 2001, David I Wolf wrote: Not sure if this is the right list, but.. I'm running mod_perl on RedHat 7. I installed the new PHP updates and all of a sudden it broke mod_perl.. I get this in my error_log try 1.25 built with perl Makefile.PL PERL_USELARGEFILES=0 ...

Re: make mod_perl

2001-01-31 Thread Doug MacEachern
On Sat, 27 Jan 2001, Ilya wrote: when I run make test I get this: cc -c -fno-strict-aliasing -I/usr/local/include -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -DPIC -fpic -I/usr/local/lib/perl5/5.6.0/i386-freebsd /CORE Symbol.c Symbol.xs: In function

<    1   2   3   4   5   6   7   8   9   >