Re: pnotes and notes not working from Apache::Registry to handler

2003-07-17 Thread Mark Maunder
thanks. :) I've ploughed through the manual and I'm pretty sure I've been trying both notes and pnotes correctly. There's also a fairly common mistake of assuming you're dealing with the initial request, when in fact Apache-request is a sub-request and you need to use $r-main to retrieve the main

Re: Apache::Registry in mod_perl 2

2003-07-17 Thread ColinB
--- Stas Bekman [EMAIL PROTECTED] wrote: ColinB wrote: So how can I go about installing just Apache::Registry from the mod_perl 1 tar file without having to install ALL of mod_perl 1 ? simply copy it into one of the dirs in your @INC. You will also need to load Apache::compat for it to

Re: Apache::Registry in mod_perl 2

2003-07-17 Thread Stas Bekman
[please don't take the threads off the list] ColinB wrote: --- Stas Bekman [EMAIL PROTECTED] wrote: ColinB wrote: So how can I go about installing just Apache::Registry from the mod_perl 1 tar file without having to install ALL of mod_perl 1 ? simply copy it into one of the dirs in your @INC.

Help me understand mod_perl and Environment settings

2003-07-17 Thread Bernhard Donaubauer
Hello! I just startet learning mod_perl and apache. I use the current version of mod_perl 1 and apache 1.3. Perl itself has version 6.5.1. My aim ist to set some environment variables visible to all apache/perl children (as far as I unsterstand there is one perl instance for each apache

Re: Double erroneous requests in POST with multipart/form-data

2003-07-17 Thread Stas Bekman
Mark Maunder wrote: I'm running all scripts under Apache::Registry and using Apache::Request because I'm handling file uploads. Sorry, should have included that. I did test this: I modified the Apache::Registry script that was being posted to so that it didn't create an Apache::Registry request

Re: modperl2 Apache::HTTP_FORBIDDEN and Apache::HTTP_INTERNAL_SERVER_ERRORimplemented?

2003-07-17 Thread Stas Bekman
speeves wrote: Hi! Just wondering if Apache::HTTP_FORBIDDEN and Apache::HTTP_INTERNAL_SERVER_ERROR have been implemented? I have been trying to port Apache::AuthenNTLM, and keep getting: [Tue Jul 15 16:46:08 2003] [error] failed to resolve handler `Apache::AuthenNTLM' [Tue Jul 15 16:46:08

Re: PerlOptions +Parent without ithreads

2003-07-17 Thread Stas Bekman
Stuart Johnston wrote: I am trying to setup Virtual Hosts each with their own Perl interpreter. I found the PerlOptions +Parent configuration but that requires ithreads. Is there another similar option I should look at that does not requre ithread? No. Perl interpreter pools are possible only

Re: Help me understand mod_perl and Environment settings

2003-07-17 Thread Mike P. Mikhailov
Hello Bernhard Donaubauer, Thursday, July 17, 2003, 5:34:57 PM, you wrote: BD Hello! BD I just startet learning mod_perl and apache. I use the current version of BD mod_perl 1 and apache 1.3. Perl itself has version 6.5.1. BD My aim ist to set some environment variables visible to all

Re: modperl2 Apache::HTTP_FORBIDDEN and Apache::HTTP_INTERNAL_SERVER_ERRORimplemented?

2003-07-17 Thread Shannon Eric Peevey
Stas Bekman wrote: speeves wrote: Hi! Just wondering if Apache::HTTP_FORBIDDEN and Apache::HTTP_INTERNAL_SERVER_ERROR have been implemented? I have been trying to port Apache::AuthenNTLM, and keep getting: [Tue Jul 15 16:46:08 2003] [error] failed to resolve handler `Apache::AuthenNTLM'

mod_per2/PerlInc in Virtualhost

2003-07-17 Thread Thomas Schindl
Hi, Is it possible to use different PerlINC-Paths in different virtual hosts in mod_perl2. In mod_perl1 I've used Apache::PerlVINC what do I use in mod_perl2? thx tom

Re: How to share subroutine

2003-07-17 Thread Thomas Klausner
:Hi! On Wed, Jul 16, 2003 at 10:46:27PM +0100, Ged Haywood wrote: Hi there, On Wed, 16 Jul 2003, Matthew Wu wrote: I put all my subroutine in file.pm, what I need to do such that it can be used by my program? I don't what location I need to put it in and what kind of configuration

Another newbie question: SetPerlVar

2003-07-17 Thread Walter H. van Holst
Hello, If I use SetPerlVar in my apache-perl httpd.conf by just plainly stating. SetPerlVar Foo Bar Apache-perl won't start: Syntax error on line xxx of /etc/apache-perl/httpd.conf: Invalid command 'SetPerlVar', perhaps mis-spelled or defined by a module not included in the server

Re: Another newbie question: SetPerlVar

2003-07-17 Thread Haroon Rafique
On Today at 6:47pm, WHvH=Walter H. van Holst [EMAIL PROTECTED]...: WHvH Hello, WHvH WHvH If I use SetPerlVar in my apache-perl httpd.conf by just plainly WHvH stating. WHvH WHvH SetPerlVar Foo Bar WHvH Try PerlSetVar instead. For 1.0

Re: Double erroneous requests in POST with multipart/form-data

2003-07-17 Thread Mark Maunder
Thanks for all the feedback. This problem is strange in that I haven't been able to duplicate it. IE got itself in a wierd situation where I would hit Reload (and press OK to confirm a rePOST) and the problem would consistently occur. Once I took IE out of that loop, I couldn't duplicate it. The

Re: Another newbie question: SetPerlVar

2003-07-17 Thread Frank Wiles
On 17 Jul 2003 18:47:06 +0200 Walter H. van Holst [EMAIL PROTECTED] wrote: Hello, If I use SetPerlVar in my apache-perl httpd.conf by just plainly stating. SetPerlVar Foo Bar Apache-perl won't start: Syntax error on line xxx of /etc/apache-perl/httpd.conf: Invalid command

Re: modperl2 Apache::HTTP_FORBIDDEN... [long post]

2003-07-17 Thread Shannon Eric Peevey
Have you imported them? use Apache::Const compile -qw(Apache::HTTP_FORBIDDEN); All the available Apache:: constants are listed here: http://perl.apache.org/docs/2.0/api/Apache/Const.html Hi! I have included the bare minimum of the code from the module, (Apache::AuthenNTLM). It is still

Re: Another newbie question: SetPerlVar

2003-07-17 Thread Walter H. van Holst
On Thu, 2003-07-17 at 18:56, Frank Wiles wrote: What is the obvious thing I am overlooking? It's PerlSetVar not SetPerlVar. * Blush * Thanks. Regards, Walter -- All things that are, are with more spirit chased than enjoyed. -- Shakespeare, Merchant of Venice

mod_perl and perl version

2003-07-17 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE- I'm installing RT 3.0.4 on a fresh server and I'm getting tripped up installing mod_perl. What I'm worried about is if I install mod_perl against perl 5.8.0, will all scripts that get run on apache be executed using perl version 5.8.0? Or can I lock that down

Re: mod_perl and perl version

2003-07-17 Thread Perrin Harkins
On Thu, 2003-07-17 at 14:05, Andy Harrison wrote: I'm installing RT 3.0.4 on a fresh server and I'm getting tripped up installing mod_perl. What I'm worried about is if I install mod_perl against perl 5.8.0, will all scripts that get run on apache be executed using perl version 5.8.0? All

Re: mod_perl and perl version

2003-07-17 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE- ~ On 17-Jul-2003, Perrin Harkins wrote message Re: mod_perl and perl version ~ All scripts that run under mod_perl will be executed using

Re: mod_perl and perl version

2003-07-17 Thread Perrin Harkins
On Thu, 2003-07-17 at 14:15, Andy Harrison wrote: Ok, so since my rt vhost has these lines: PerlModule Apache::DBI PerlRequire /usr/local/rt3/bin/webmux.pl Location / SetHandler perl-script PerlHandler RT::Mason /Location Will they be the only

does pnotes() work at all in 1.27?

2003-07-17 Thread Mark Maunder
Sorry about the repost, but this is driving me nuts. Has anyone gotten $r-pnotes() to work under Apache 1.3.27 and mod_perl 1.27? A simple yes will do because then at least I'll know if it's my mistake or a bug. It's this posting that makes me think it's a bug:

clones and parents

2003-07-17 Thread Marc M. Adkins
Let's say I want to create a site with five virtual hosts. I want all of them to share the basic MP2 stuff, Apache-related modules and so forth. Then, for Virtual Host 1 (VH1 for short ;) I want to specify a set of modules unique to VH1. For VH2-VH4 I want to specify another set of modules, but

Re: modperl2 Apache::HTTP_FORBIDDEN... [long post]

2003-07-17 Thread Randy Kobes
On Thu, 17 Jul 2003, Shannon Eric Peevey wrote: Have you imported them? use Apache::Const compile -qw(Apache::HTTP_FORBIDDEN); All the available Apache:: constants are listed here: http://perl.apache.org/docs/2.0/api/Apache/Const.html I have included the bare minimum of the code from

Re: does pnotes() work at all in 1.27?

2003-07-17 Thread Dennis Stout
Has anyone gotten $r-pnotes() to work under Apache 1.3.27 and mod_perl 1.27? A simple yes will do because then at least I'll know if it's my mistake or a bug. I'll work on it when I get home again. weee, thursday, gotta have this project done monday.. *sigh* The good news, is that I run

Re: does pnotes() work at all in 1.27?

2003-07-17 Thread Mark Maunder
Thanks - would be helpful if you could try to use pnotes to communicate between two mod_perl handlers. Just some really basic code like: package MyContentHandler; use Apache::Constants qw( :common ); sub handler { my $r = shift @_; $r-pnotes('mykey', 'A regular string scalar');

Re: does pnotes() work at all in 1.27?

2003-07-17 Thread Mark Maunder
(That's supposed to be send_http_header() - and there's prob a few other errors in there. :) On Thu, 2003-07-17 at 13:50, Mark Maunder wrote: Thanks - would be helpful if you could try to use pnotes to communicate between two mod_perl handlers. Just some really basic code like: package

Re: Help me understand mod_perl and Environment settings

2003-07-17 Thread Ged Haywood
Hi there, On Thu, 17 Jul 2003, Bernhard Donaubauer wrote: I just startet learning mod_perl and apache. I use the current version of mod_perl 1 and apache 1.3. Perl itself has version 6.5.1. Can you be a little more careful with your version numbers in future? but my testapplication does

Re: modperl2 Apache::HTTP_FORBIDDEN... [long post]

2003-07-17 Thread Shannon Eric Peevey
use constant MP2 = ($mod_perl::VERSION = 1.99); # test for the version of mod_perl, and use the appropriate libraries BEGIN { if (MP2) { require Apache::Const; require Apache::Access; require Apache::Connection; require

How do I have a PerlAuthenHandler not popup the login box?

2003-07-17 Thread Jason Fong
I'm making a login system that uses a web form instead of the browser's popup box to input the username/password. My problem is that when I use my authentication script as a PerlAuthenHandler in the .htaccess, it insists on having the browser show the popup username/password box. I tried making

Re: How do I have a PerlAuthenHandler not popup the login box?

2003-07-17 Thread Keith Keller
On Thu, Jul 17, 2003 at 06:07:48PM -0700, Jason Fong wrote: I'm making a login system that uses a web form instead of the browser's popup box to input the username/password. My problem is that when I use my authentication script as a PerlAuthenHandler in the .htaccess, it insists on having

RE: clones and parents

2003-07-17 Thread Marc M. Adkins
No wonder this seemed familiar. I wrote pretty much the same memo six weeks ago. D'oh! I've been spending too much time at the keyboard... So is PerlOptions +Parent working? Whenever I enable it I get a segfault on W2K / Ap2.0.46 / mp1.99.10dev. mma -Original Message- From: Marc

mod_accel redirects

2003-07-17 Thread Philip Mak
Given this server configuration (this is a front-end lightweight Apache, which uses mod_accel to proxy to a back-end mod_perl Apache): ServerName www.shoujoai.com ServerAlias shoujoai.com AccelPass / http://127.0.0.1:8002/ and given a file called redir.asp, which contains