RE: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Alexander.Farber
Hi Stas, thanks for your reply. I've forgotten to mention it, but I have already tried BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; $ENV{PATH} = '/bin:/usr/bin'; } And also the values '' and '/' for $ENV{PATH}. Unfortunately the error message when I'm sending mail

Re: [MP2] eval and exit(0) : problem

2004-04-30 Thread Arnaud Blancher
Stas Bekman a écrit : ydnar wrote: The eval() is unecessary. The named sub can be used: $func(); yes but not with use strict ... mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right modules are being loaded? You don't need to load anything. Indeed under mp2:

mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-30 Thread olivier . blanc
hello all, I finally manage to recompile mod_perl in static mod and Apache to be linked with mod_perl. It works correctly for now on. I just found a problem that I have to work on : in Apache error_log file I found the following lines : /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol

Re: mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-30 Thread William A. Rowe, Jr.
At 10:38 AM 4/29/2004, olivier blanc wrote: While trying to load compiled DSO modperl in Apache, I got the following error Syntax error on line 223 of /opt/hpws/apache2/conf/httpd.conf: Cannot load /opt/hpws/apache2/modules/mod_perl.so into server: Error 0 Hmmm,

Printing the called address without PATH_INFO and QUERY_STRING

2004-04-30 Thread Alexander.Farber
Hi, this is probably somewhere in the docs, but I can't find it... Would some kind sould please advise me, how to print the hostname and the called script in the error message below? # Extract port, user, default database from PATH_INFO $port = $1 if $r-path_info() =~ /\/port=(\d+)/i;

Re: help with perlfixuphandler

2004-04-30 Thread Cristóvão B. B. Dalla Costa
Geoffrey Young wrote: Cristóvão B. B. Dalla Costa wrote: We then set up a PerlFixupHandler which sets the file to send with $r-filename, but that's having no effect. that's odd. if you set $r-filename($file) from a PerlFixupHandler and have apache's default handler (either no SetHandler

Re: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi Stas, thanks for your reply. I've forgotten to mention it, but I have already tried BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; $ENV{PATH} = '/bin:/usr/bin'; } Alex, please show me a complete minimal test case. You might be able to

Re: mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-30 Thread Stas Bekman
[EMAIL PROTECTED] wrote: hello all, I finally manage to recompile mod_perl in static mod and Apache to be linked with mod_perl. It works correctly for now on. Fantastic. You are the first user to try the static mod_perl 2! Did the test suite pass 100%? I just found a problem that I have to

Re: mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-30 Thread Stas Bekman
Thanks Bill! Do other Apache modules work as DSO on those platforms? We have DSO problems with OpenBSD 2.9, FreeBSD (not sure which version) and a few others, not sure if they are related at all. Most of the time there is no error at all, httpd just hangs. --

Re: mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-30 Thread Stas Bekman
[Olivier, please remember to keep the messages on the list. Thanks] So your error log shows that there are quite a few problem. How is it possible that you did get 'make test' to pass. Or did it? === # Failed test 6 in

RE: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Alexander.Farber
Hi Stas, sorry for not replying - too much pressure at work and I have to finish my mod_perl-script (a Continuus trigger) tonight. I don't have time to install Apache::Reload, but I've tried to create a test case for you - running: package Testcase; BEGIN { delete @ENV{qw(IFS CDPATH

RE: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Alexander.Farber
I've also tried removing Apache::StatINC from everywhere in the httpd.conf: #PerlModule Apache::StatINC PerlModule Testcase Location /testcase SetHandler perl-script PerlHandler Testcase #PerlInitHandler Apache::StatINC #PerlSetVar StatINCDebug On /Location and still get the same

Re: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Stas Bekman
[EMAIL PROTECTED] wrote: [...] I've workarounded my problem by moving the line $ENV{PATH} = '/bin:/usr/bin:/usr/lib'; from the BEGIN block into the handler sub, right before I call my $sendmail = Mail::Mailer-new(); $sendmail-open(); So it looks to me, that it's a

ANNOUNCE: Krang v1.017 Released

2004-04-30 Thread Sam Tregar
Krang v1.017 is now available. Notable changes in this release: - A major performance speedup for previewing and publishing is now in place. Links to stories and media which are unchanged since their last publish will no longer trigger publishing. - The category chooser now

Re: ANNOUNCE: Krang v1.017 Released

2004-04-30 Thread Stas Bekman
I just adding this to the listing of mod_perl frameworks: http://perl.apache.org/products/app-server.html#Krang -- __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---

Re: *:80 has no VirtualHosts but only via perl!

2004-04-30 Thread Will Trillich
still having trouble: On Mon, Apr 26, 2004 at 11:08:15AM -0400, Brian Reichert wrote: On Sat, Apr 24, 2004 at 11:47:15PM -0500, Will Trillich wrote: with httpd.conf directives, these virtualhosts work just fine. but trying to use perl to make them more universally configurable, we get the

Re: mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-30 Thread Stas Bekman
William A. Rowe, Jr. wrote: At 12:23 PM 4/30/2004, Stas Bekman wrote: Thanks Bill! Do other Apache modules work as DSO on those platforms? Since my builds are 32 bit, I can't tell you for certain, but I'd expect the httpd/apr folks would have heard by now of a problem. Difference, is that most

Re: ANNOUNCE: Krang v1.017 Released

2004-04-30 Thread Garth Webb
On Fri, 2004-04-30 at 12:24, Stas Bekman wrote: I just adding this to the listing of mod_perl frameworks: http://perl.apache.org/products/app-server.html#Krang Maybe I'm not familiar enough with it, but isn't Krang an online publishing application that uses one or more mod_perl frameworks, not

Re: ANNOUNCE: Krang v1.017 Released

2004-04-30 Thread Perrin Harkins
On Fri, 2004-04-30 at 17:35, Garth Webb wrote: Maybe I'm not familiar enough with it, but isn't Krang an online publishing application that uses one or more mod_perl frameworks, not a mod_perl framework itself? You are correct, it belong on the products page, under Content Management Systems:

Re: ANNOUNCE: Krang v1.017 Released

2004-04-30 Thread Stas Bekman
Perrin Harkins wrote: On Fri, 2004-04-30 at 17:35, Garth Webb wrote: Maybe I'm not familiar enough with it, but isn't Krang an online publishing application that uses one or more mod_perl frameworks, not a mod_perl framework itself? You are correct, it belong on the products page, under Content

Re: ANNOUNCE: Krang v1.017 Released

2004-04-30 Thread Garth Webb
On Fri, 2004-04-30 at 14:51, Stas Bekman wrote: Perrin Harkins wrote: On Fri, 2004-04-30 at 17:35, Garth Webb wrote: Maybe I'm not familiar enough with it, but isn't Krang an online publishing application that uses one or more mod_perl frameworks, not a mod_perl framework itself?

cvs commit: modperl-2.0/lib/ModPerl CScan.pm

2004-04-30 Thread stas
stas2004/04/30 14:55:53 Modified:lib/ModPerl CScan.pm Log: support embedded enum-in-struct definitions, last source scanning problem eliminated (as of now :) Revision ChangesPath 1.2 +1 -1 modperl-2.0/lib/ModPerl/CScan.pm Index: CScan.pm