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

2004-05-03 Thread olivier . blanc
Hey, I managed to go further in the compilation and tests. Here is the last test report : Failed Test                          Stat Wstat Total Fail  Failed  List of Failed ---

Re: [MP2 CVS] make test errors under freebsd and perl5.8.4

2004-05-03 Thread Ruslan U. Zakirov
Stas Bekman wrote: Ruslan U. Zakirov wrote: Hello. Failed Test Stat Wstat Total Fail Failed List of Failed --- t/apr-ext/uuid.t 1 256 34 133.33% 2-3 t/filter/both

[mp2] CONTENT_LENGTH & input filter

2004-05-03 Thread Micah Johnson
Hi, I'm trying to use a pre-existing CGI script without modification. I'd like to use an input filter to tack on something to the POST string. My filter adds the string, but the CGI sees a CONTENT_LENGTH environmental variable that corresponds to its original length. How do I update the CONTENT

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

2004-05-03 Thread olivier . blanc
Hi all, Sorry, I had a miss reading of the result. I was too excited when all compilation pass thru and when I saw that apache server started sucessfully... All tests failure reported below are due to this  Bucket.sl problem. How can I figure out what is going on, and How can I try to fix the pr

Re: mod_perl File Extension Configuration instead of a Path Configuration

2004-05-03 Thread JupiterHost.Net
Sorry to top post... So is it (the subject/original email below) impossible then? Or is it possible just not advisable? TIA JupiterHost.Net wrote: Hello group! Super mod_perl newbie here :) I was wondering if its possible to setup mod_perl in httpd.conf with a File Extension Configuration instead o

Re: mod_perl File Extension Configuration instead of a Path Configuration

2004-05-03 Thread petersm
If you want to do something like this ... every file ending in .pl is run as an Apache::Registry (mod_perl 1) script you could do something like this in your httpd.conf [snip] PerlModule Apache::Registry AddHandler perl-script .mpl PerlHandler Apache::Registry [/snip] This kind of setup is dang

Re: mod_perl File Extension Configuration instead of a Path Configuration

2004-05-03 Thread JupiterHost.Net
petersm wrote: If you want to do something like this ... every file ending in .pl is run as an Apache::Registry (mod_perl 1) script you could do something like this in your httpd.conf [snip] PerlModule Apache::Registry AddHandler perl-script .mpl PerlHandler Apache::Registry [/snip] Excellent than

Re: mod_perl File Extension Configuration instead of a Path Configuration

2004-05-03 Thread Perrin Harkins
On Mon, 2004-05-03 at 12:39, JupiterHost.Net wrote: > IE: it would be just as dangerouse as running a regular perl or shell or > OTHER_LANGUAGE_HERE script in their home dir, correct? [...] > mod_perl scripts are run with the permissions of the user correct? > IE if Apache its 'nobody' or otherwsi

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

2004-05-03 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi all, Sorry, I had a miss reading of the result. I was too excited when all compilation pass thru and when I saw that apache server started sucessfully... All tests failure reported below are due to this Bucket.sl problem. How can I figure out what is going on, and Ho

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

2004-05-03 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hey, I managed to go further in the compilation and tests. Here is the last test report : Failed Test Stat Wstat Total Fail Failed List of Failed

Re: [mp2] CONTENT_LENGTH & input filter

2004-05-03 Thread Stas Bekman
Micah Johnson wrote: Hi, I'm trying to use a pre-existing CGI script without modification. I'd like to use an input filter to tack on something to the POST string. My filter adds the string, but the CGI sees a CONTENT_LENGTH environmental variable that corresponds to its original length. How do

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

2004-05-03 Thread Arnaud Blancher
Stas Bekman a écrit : Arnaud Blancher wrote: Stas Bekman a écrit : ydnar wrote: The eval() is unecessary. The named sub can be used: &$func(); yes but not with use strict ... try: { no strict 'refs'; &$func(); } yes, it's work. i'don't realy like this solution, just because i alwa

OT[maybe] IPC or broke:)

2004-05-03 Thread [EMAIL PROTECTED]
Hi, I have a handler that currently simply authenticates a user. Then once they are authenticated they are able to run a specific program with diff args living on the server. The thing is the program can take from 10 to like 60 seconds to complete results. This means that: page never really

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

2004-05-03 Thread Stas Bekman
Arnaud Blancher wrote: [...] try: { no strict 'refs'; &$func(); } yes, it's work. i'don't realy like this solution, just because i always try to use 'use strict' to avoid problem with mod_perl But in this case, it disables strict refs only for a very small scope! It doesn't affe

Re: OT[maybe] IPC or broke:)

2004-05-03 Thread Perrin Harkins
On Mon, 2004-05-03 at 13:23, [EMAIL PROTECTED] wrote: > The thing is the program can take from 10 to like 60 seconds > to complete results. > This means that: > page never really loads since it is waiting for > results that take far too long to get. Just looking for > other opinions on handling

Re: some children not returning newly-inserted data

2004-05-03 Thread Perrin Harkins
On Mon, 2004-05-03 at 13:15, Dave Boodman wrote: > OK, here's some code: This is a little too much code to look at without any direction. The best thing to do would be to remove as much code as possible to get things down to the smallest example that demonstrates the problem. You should also tel

Re: some children not returning newly-inserted data

2004-05-03 Thread Dave Boodman
OK, here's some code: # systems my @statuses; my (@systems) = Lib::Systems->search( cid => $cid ); unless (@systems) { $self->model->log('debug', "systems for '$cid' not found"); $self->context->throw( 'systems.not_found', 'Systems not found' ); }; my $systems_profile = Lib::Pr

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

2004-05-03 Thread Glenn
On Mon, May 03, 2004 at 07:17:54PM +0200, Arnaud Blancher wrote: > Stas Bekman a ?crit : > > >Arnaud Blancher wrote: > > > >>Stas Bekman a ?crit : > >> > >>>ydnar wrote: > >>> > The eval() is unecessary. The named sub can be used: > > &$func(); > >>> > >>> > >>> > >>yes but not with

[mp2] default handler

2004-05-03 Thread Udlei Nattis
Hi, I have problem to set default handler when enter in my website httpd.conf: $Location{"/"} = { SetHandler => "perl-script", PerlHandler => "eShop::Web::Shop::home", PerlOptions => "+SetupEnv", }; but when i access /image.gif, apache open module Sho

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

2004-05-03 Thread Stas Bekman
Glenn wrote: On Mon, May 03, 2004 at 07:17:54PM +0200, Arnaud Blancher wrote: Stas Bekman a ?crit : Arnaud Blancher wrote: Stas Bekman a ?crit : ydnar wrote: The eval() is unecessary. The named sub can be used: &$func(); yes but not with use strict ... try: { no strict 'refs'; &$func();

[ANNOUNCE] Apache-AuthNetLDAP-0.29

2004-05-03 Thread Shannon Eric Peevey
The uploaded file Apache-AuthNetLDAP-0.29.tar.gz has entered CPAN as file: $CPAN/authors/id/S/SP/SPEEVES/Apache-AuthNetLDAP-0.29.tar.gz size: 6952 bytes md5: 66f557af1f2c443d8219be32200bed60 This release incorporates the ability to specify an alternative attribute as the password field... -

Re: [mp2] default handler

2004-05-03 Thread Stas Bekman
Udlei Nattis wrote: Hi, I have problem to set default handler when enter in my website httpd.conf: $Location{"/"} = { SetHandler => "perl-script", PerlHandler => "eShop::Web::Shop::home", PerlOptions => "+SetupEnv", }; but when i access /image.gif, ap

Re: [mp2] default handler

2004-05-03 Thread Udlei Nattis
Thanks Stas, That is my problem, subdirectoy is ok now but in directory index problem persist exists for example: # Modulo home default $Location{"/"} = { SetHandler => "modperl", PerlHandler => "eShop::Web::Shop::home", PerlOptions => "+SetupEnv", }; >$Locati

Re: [mp2] $r->auth_name

2004-05-03 Thread Fred Moyer
Is there an mp2 implementation of $r->auth_name? I'm working with Apache::AuthCookie in a native mp2 environment and am getting an error message of: I believe this module has been ported to mp2 already. you might want to check the archives so you don't end up doing more work than you need. I fol

Re: [mp2] default handler

2004-05-03 Thread Stas Bekman
Udlei Nattis wrote: Thanks Stas, That is my problem, subdirectoy is ok now but in directory index problem persist exists for example: # Modulo home default $Location{"/"} = { SetHandler => "modperl", PerlHandler => "eShop::Web::Shop::home", PerlOptions => "+SetupEnv",

Re: mod_perl File Extension Configuration instead of a Path Configuration

2004-05-03 Thread JupiterHost.Net
Thanks for your input! I really appreciate it! Perrin Harkins wrote: On Mon, 2004-05-03 at 12:39, JupiterHost.Net wrote: IE: it would be just as dangerouse as running a regular perl or shell or OTHER_LANGUAGE_HERE script in their home dir, correct? [...] mod_perl scripts are run with the permissio

[mp1] subprocess_env and non-mod_perl handlers

2004-05-03 Thread John Wittkoski
Greetings all, So I've been trying to find an answer to this in both the archives and in the available mod_perl books, but I have not had any luck, so I was hoping someone on the list would know the answer. Generally: how does subprocess_env in mod_perl 1.x behave with non-mod_perl handlers?

Re: mod_perl File Extension Configuration instead of a Path Configuration

2004-05-03 Thread Perrin Harkins
On Mon, 2004-05-03 at 17:24, JupiterHost.Net wrote: > So if I did it the .mpl way then /usr/foo/bar.mpl and /usr/foo/baz.mpl > will run as nobody (IE untrusted user with less privileges) If that's who your server runs as, then yes. The "nobody" user has the same privileges as any other user the

Re: mod_perl File Extension Configuration instead of a Path Configuration

2004-05-03 Thread JupiterHost.Net
Perrin Harkins wrote: On Mon, 2004-05-03 at 17:24, JupiterHost.Net wrote: So if I did it the .mpl way then /usr/foo/bar.mpl and /usr/foo/baz.mpl will run as nobody (IE untrusted user with less privileges) If that's who your server runs as, then yes. The "nobody" user has the same privileges as

Re: [mp1] subprocess_env and non-mod_perl handlers

2004-05-03 Thread Geoffrey Young
> Example 1: > > I have mod_perl handlers defined for the TypeHandler and FixupHandler > phases. If in the TypeHandler code I do this: > > $r->subprocess_env("TEST" => "value"); > > Then in FixupHandler I can "see" TEST using: > > $something = $r->subprocess_env("TEST"); > > Which is what yo

Re: [mp2] $r->auth_name

2004-05-03 Thread Geoffrey Young
Fred Moyer wrote: > Greetings, > > Is there an mp2 implementation of $r->auth_name? I'm working with > Apache::AuthCookie in a native mp2 environment and am getting an error > message of: I believe this module has been ported to mp2 already. you might want to check the archives so you don't e

[mp2] $r->auth_name

2004-05-03 Thread Fred Moyer
Greetings, Is there an mp2 implementation of $r->auth_name? I'm working with Apache::AuthCookie in a native mp2 environment and am getting an error message of: Can't locate class method 'Apache::RequestRec::auth_name' via package 'Apache::ReqestRec' at Apache/AuthCookie.pm line 18 I've found

mason/mod_perl debugging help needed

2004-05-03 Thread Andrew Waegel
Hello, Andrew Waegel here, popping over from the HTML::Mason list with a request for help. I've reached the limit of my debugging ability and am now looking for an experienced Apache/mod_perl/mason developer to help me debug a problem I'm having with my system. Some more details on the problem: