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
 kevin.tho...@pibenchmark.com wrote:
  Location /perl-status
     SetHandler perl-script
     PerlResponseHandler Apache2::Status
     Order deny,allow
     Allow from all
  /Location
 
  ...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




Re: SetHandler perl-script not working

2010-01-13 Thread Cosimo Streppone
On Wed, 13 Jan 2010 13:28:03 +0100, Kevin Thorpe  
kevin.tho...@pibenchmark.com 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
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
 kevin.tho...@pibenchmark.com 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 Perrin Harkins
On Wed, Jan 13, 2010 at 7:28 AM, Kevin Thorpe
kevin.tho...@pibenchmark.com wrote:
 I tried stripping everything out as suggested and ended up with only the
 basic httpd.conf and perl.conf installed, still no joy.

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 Douglas Sims
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 phark...@gmail.com wrote:

On Wed, Jan 13, 2010 at 7:28 AM, Kevin Thorpe

kevin.tho...@pibenchmark.com 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, 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 phark...@gmail.com wrote:

On Wed, Jan 13, 2010 at 7:28 AM, Kevin Thorpe
kevin.tho...@pibenchmark.com 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



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:

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

...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: SetHandler perl-script not working

2010-01-12 Thread Adam Prime
Can you post the error message(s)?  Theres nothing obviously wrong with
what you've got there.

Adam

Kevin Thorpe wrote:
 Hi all,
   I have a serious problem with sethandler perl-script not working. 
 For testing I have enabled perl-status:
 
 Location /perl-status
 SetHandler perl-script
 PerlResponseHandler Apache2::Status
 Order deny,allow
 Allow from all
 /Location
 
 ...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: SetHandler perl-script not working

2010-01-12 Thread Perrin Harkins
On Tue, Jan 12, 2010 at 6:43 AM, Kevin Thorpe
kevin.tho...@pibenchmark.com wrote:
 Location /perl-status
    SetHandler perl-script
    PerlResponseHandler Apache2::Status
    Order deny,allow
    Allow from all
 /Location

 ...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