RE: SetHandler perl-script not working

2010-01-13 Thread Kevin Thorpe
Sorry, I had taken that out to test but forgot to strip from the 
pastebin. That's there for
Drupal which is just a huge clever 404 script.

From: Douglas Sims [mailto:ratsb...@gmail.com] 
Sent: 13 January 2010 17:10
Cc: modperl@perl.apache.org; Kevin Thorpe
Subject: Re: SetHandler perl-script not working

Is that rewrite rule (~line 101) turning everything into an index.php?
Sent from my gPhone
On Jan 13, 2010 11:02 AM, "Perrin Harkins"  wrote:

On Wed, Jan 13, 2010 at 7:28 AM, Kevin Thorpe
 wrote: 
> I tried stripping everything out as suggested and ended up with only 
the > basic httpd.conf and pe...
There's still a ton of stuff in there.  You need to take all of the
Files, Location, and Directory stuff out to find the culprit.

My wild guess is that if you move this block to the bottom, it will 
work.

- Perrin



RE: SetHandler perl-script not working

2010-01-13 Thread Kevin Thorpe
Sorry, forgot to strip out. Was commented out for test and I had to put 
it back to get my site working. RewriteEngine wasn't on anyway and I was 
watching rewritelog (level 9) as well as access_log and error_log so no 
rewrite there

> -Original Message-
> From: Cosimo Streppone [mailto:cos...@streppone.it]
> Sent: 13 January 2010 12:31
> To: Kevin Thorpe
> Cc: Mod_perl users
> Subject: Re: SetHandler perl-script not working
> 
> On Wed, 13 Jan 2010 13:28:03 +0100, Kevin Thorpe
>  wrote:
> 
> > I tried stripping everything out as suggested and ended up with only
> the
> > basic httpd.conf and perl.conf installed, still no joy. Why is it
> > looking for index.php when I'm assking for a perl script? Config in
> > pastebin.
> 
> You happen to have a redirect rule at line 101 that looks like:
> 
>RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
> 
> are you sure that is correct?
> 
> --
> Cosimo




RE: SetHandler perl-script not working

2010-01-13 Thread Kevin Thorpe
I tried stripping everything out as suggested and ended up with only the 
basic httpd.conf and perl.conf installed, still no joy. Why is it 
looking for index.php when I'm assking for a perl script? Config in 
pastebin.

thanks

==> /var/log/httpd/access_log <==
10.20.11.148 - - [13/Jan/2010:12:26:21 +] "GET /perl-status 
HTTP/1.1" 404 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; 
rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"

==> /var/log/httpd/error_log <==
[Wed Jan 13 12:26:21 2010] [error] [client 10.20.11.148] File does not 
exist: /home/httpd/html/index.php
[Wed Jan 13 12:26:21 2010] [error] [client 10.20.11.148] File does not 
exist: /home/httpd/html/index.php

http://pastebin.com/m56f4bd2b

> -Original Message-
> From: Perrin Harkins [mailto:phark...@gmail.com]
> Sent: 12 January 2010 14:13
> To: Kevin Thorpe
> Cc: modperl@perl.apache.org
> Subject: Re: SetHandler perl-script not working
> 
> On Tue, Jan 12, 2010 at 6:43 AM, Kevin Thorpe
>  wrote:
> > 
> >    SetHandler perl-script
> >    PerlResponseHandler Apache2::Status
> >    Order deny,allow
> >    Allow from all
> > 
> >
> > ...but I'm still getting 404 for the URL.
> 
> It sounds like something else in your config is intercepting the URL.
> Try removing other things one chunk at a time until this works.
> 
> Alternatively, you might be sending your requests to the wrong server
> or virtual server.
> 
> - Perrin




SetHandler perl-script not working

2010-01-12 Thread Kevin Thorpe
Hi all,
I have a serious problem with sethandler perl-script not working. 
For testing I have enabled perl-status:


SetHandler perl-script
PerlResponseHandler Apache2::Status
Order deny,allow
Allow from all


...but I'm still getting 404 for the URL. I'm definitely reading the 
file as adding a syntax error in the above causes httpd -t to fail. It 
is quite a complex install though with Drupal and Scalix (which uses 
tomcat and ajp proxy). Can anyone suggest how to go about fixing this?

Thanks

Don't worry about the allow from all, it's a private box and I'll remove 
it again. 


Re: Losing $r->user between PerlFixupHandler and PerlLogHandler

2008-06-05 Thread Kevin Thorpe

Kevin Thorpe wrote:
Hi, I have just upgraded from Apache1 to Apache2 and I am now having 
problems with logging to my database.


I am using AuthCookie and AuthCookieDBI for logging in. AuthCookie 
sets $r->user in the PerlFixupHandler.
However reading $r->user in PerlLogHandler doesn't always return the 
user set in the previous handler.


Can anyone shed any light on why the RequestRec is losing the user name?

thanks
Ah, found it! mod_php was destroying the contents of $r->user as it was 
trying to do authentication itself. Notes

here about the problem

http://mail-archives.apache.org/mod_mbox/perl-modperl/200401.mbox/[EMAIL 
PROTECTED]


Re: Losing $r->user between PerlFixupHandler and PerlLogHandler

2008-06-05 Thread Kevin Thorpe

Vegard Vesterheim wrote:

On Thu, 5 Jun 2008 12:25:17 +0100 Kevin Thorpe <[EMAIL PROTECTED]> wrote:

  

Hi, I have just upgraded from Apache1 to Apache2 and I am now having
problems with logging to my database.

I am using AuthCookie and AuthCookieDBI for logging in. AuthCookie
sets $r->user in the PerlFixupHandler.
However reading $r->user in PerlLogHandler doesn't always return the
user set in the previous handler.

Can anyone shed any light on why the RequestRec is losing the user name?



I encountered a similar problem some time ago. Have a look at this
thread, maybe your problem is related:

http://marc.info/?l=apache-modperl&m=119996305532711&w=2

  

Nope, $r->main and $r->prev are both empty and $r->is_initial_req == 1

now I'm really baffled


Losing $r->user between PerlFixupHandler and PerlLogHandler

2008-06-05 Thread Kevin Thorpe
Hi, I have just upgraded from Apache1 to Apache2 and I am now having 
problems with logging to my database.


I am using AuthCookie and AuthCookieDBI for logging in. AuthCookie sets 
$r->user in the PerlFixupHandler.
However reading $r->user in PerlLogHandler doesn't always return the 
user set in the previous handler.


Can anyone shed any light on why the RequestRec is losing the user name?

thanks