SetHandler perl-script not working
SetHandler perl-script not working
am 12.01.2010 12:43:57 von Kevin Thorpe
Hi all,
I have a serious problem with sethandler perl-script not working.=20
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=20
file as adding a syntax error in the above causes httpd -t to fail. It=20
is quite a complex install though with Drupal and Scalix (which uses=20
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=20
it again.=20
Re: SetHandler perl-script not working
am 12.01.2010 15:08:56 von 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:
>
>
> 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: SetHandler perl-script not working
am 12.01.2010 15:12:45 von Perrin Harkins
On Tue, Jan 12, 2010 at 6:43 AM, Kevin Thorpe
wrote:
>
> =A0 =A0SetHandler perl-script
> =A0 =A0PerlResponseHandler Apache2::Status
> =A0 =A0Order deny,allow
> =A0 =A0Allow 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
RE: SetHandler perl-script not working
am 13.01.2010 13:28:03 von Kevin Thorpe
I tried stripping everything out as suggested and ended up with only the=20
basic httpd.conf and perl.conf installed, still no joy. Why is it=20
looking for index.php when I'm assking for a perl script? Config in=20
pastebin.
thanks
==> /var/log/httpd/access_log <==
10.20.11.148 - - [13/Jan/2010:12:26:21 +0000] "GET /perl-status=20
HTTP/1.1" 404 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US;=20
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=20
exist: /home/httpd/html/index.php
[Wed Jan 13 12:26:21 2010] [error] [client 10.20.11.148] File does not=20
exist: /home/httpd/html/index.php
http://pastebin.com/m56f4bd2b
> -----Original Message-----
> From: Perrin Harkins [mailto:pharkins@gmail.com]
> Sent: 12 January 2010 14:13
> To: Kevin Thorpe
> Cc: modperl@perl.apache.org
> Subject: Re: SetHandler perl-script not working
>=20
> On Tue, Jan 12, 2010 at 6:43 AM, Kevin Thorpe
> wrote:
> >
> > =A0 =A0SetHandler perl-script
> > =A0 =A0PerlResponseHandler Apache2::Status
> > =A0 =A0Order deny,allow
> > =A0 =A0Allow from all
> >
> >
> > ...but I'm still getting 404 for the URL.
>=20
> It sounds like something else in your config is intercepting the URL.
> Try removing other things one chunk at a time until this works.
>=20
> Alternatively, you might be sending your requests to the wrong server
> or virtual server.
>=20
> - Perrin
Re: SetHandler perl-script not working
am 13.01.2010 13:30:58 von Cosimo Streppone
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
am 13.01.2010 13:35:07 von Kevin Thorpe
Sorry, forgot to strip out. Was commented out for test and I had to put=20
it back to get my site working. RewriteEngine wasn't on anyway and I was=20
watching rewritelog (level 9) as well as access_log and error_log so no=20
rewrite there
> -----Original Message-----
> From: Cosimo Streppone [mailto:cosimo@streppone.it]
> Sent: 13 January 2010 12:31
> To: Kevin Thorpe
> Cc: Mod_perl users
> Subject: Re: SetHandler perl-script not working
>=20
> On Wed, 13 Jan 2010 13:28:03 +0100, Kevin Thorpe
> wrote:
>=20
> > 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.
>=20
> You happen to have a redirect rule at line 101 that looks like:
>=20
> RewriteRule ^(.*)$ index.php?q=3D$1 [L,QSA]
>=20
> are you sure that is correct?
>=20
> --
> Cosimo
Re: SetHandler perl-script not working
am 13.01.2010 18:02:06 von Perrin Harkins
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 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
am 13.01.2010 18:09:55 von Doug Sims
--00504502cc73e56094047d0ed682
Content-Type: text/plain; charset=ISO-8859-1
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
--00504502cc73e56094047d0ed682
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Is that rewrite rule (~line 101) turning everything into an index.php?=
p>
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
<
om">Kevin.Thorpe@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. =A0You 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.
r>
- Perrin
--00504502cc73e56094047d0ed682--
RE: SetHandler perl-script not working
am 13.01.2010 18:14:15 von Kevin Thorpe
Sorry, I had taken that out to test but forgot to strip from the=20
pastebin. That's there for
Drupal which is just a huge clever 404 script.
From: Douglas Sims [mailto:ratsbane@gmail.com]=20
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:=20
> I tried stripping everything out as suggested and ended up with only=20
the > basic httpd.conf and pe...
There's still a ton of stuff in there. =A0You 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=20
work.
- Perrin