mod_perl conf test

--00151748e70ae0b3f504671686a9
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I installed and configured mod_perl2.0004 successfully.
To test that, I wrote one Hello.pm prg as per document and saved it
C:\Perl\site\lib\Apache2\

package Apache2::Hello;
use strict;

use Apache2::RequestRec (); # for $r->content_type
use Apache2::RequestIO (); # for $r->puts
use Apache2::Const -compile => ':common';

sub handler {
my $r = shift;
my $time = scalar localtime();
my $package = __PACKAGE__;
$r->content_type('text/html');
$r->puts(<<"END");
<HTML><BODY>
<H3>Hello</H3>
Hello from <B>$package</B>! The time is $time.
</BODY></HTML>
END
return Apache2::Const::OK;
}

1;

and put the following lines in C:\Program Files\Apache Software
Foundation\Apache2.2\conf\httpd.conf

PerlModule Apache2::Hello
<Location /hello>
SetHandler modperl
PerlResponseHandler Apache2::Hello
</Location>



but http://localhost/hellp It gives HTTP 404 Not Found error.

--00151748e70ae0b3f504671686a9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>I installed and configured mod_perl2.0004 successfully.</div>
<div>To test that, I wrote one Hello.pm prg as per document and saved it C:=
\Perl\site\lib\Apache2\</div>
<div>=A0</div>
<div>=A0package Apache2::Hello;<br>=A0 use strict;<pre class=3D"pre-section=
"> use Apache2::RequestRec (); # for $r->content_type
use Apache2::RequestIO (); # for $r->puts
use Apache2::Const -compile =3D> ':common';</pre><pre class=3D=
"pre-section"> sub handler {
my $r =3D shift;
my $time =3D scalar localtime();
my $package =3D __PACKAGE__;
$r->content_type('text/html');
$r->puts(<<"END");
<HTML><BODY>
<H3>Hello</H3>
Hello from <B>$package</B>! The time is $time.
</BODY></HTML>
END
return Apache2::Const::OK;
}</pre><pre class=3D"pre-section"> 1;</pre><pre class=3D"pre-section">an=
d put the following lines in C:\Program Files\Apache Software Foundation\Ap=
ache2.2\conf\httpd.conf</pre><pre class=3D"pre-section">PerlModule Apache2:=
:Hello
<Location /hello>
SetHandler modperl
PerlResponseHandler Apache2::Hello
</Location></pre><pre class=3D"pre-section">=A0</pre><pre class=3D"=
pre-section">but <a href=3D"http://localhost/hellp">http://localhost/hellp<=
/a> It gives HTTP 404 Not Found error.</pre><pre class=3D"pre-section">=A0<=
/pre></div>

--00151748e70ae0b3f504671686a9--
sandhya pawar [ Do, 09 April 2009 05:05 ] [ ID #1997019 ]

Re: mod_perl conf test

> and put the following lines in C:\Program Files\Apache Software
> Foundation\Apache2.2\conf\httpd.conf
>
> PerlModule Apache2::Hello
> <Location /hello>
> SetHandler modperl
> PerlResponseHandler Apache2::Hello
> </Location>
>
>
>
> but http://localhost/hellp It gives HTTP 404 Not Found error.

Just to take care of the obvious here -- you pointed the browser to
hellp, not hello? Or is that just a typo in your email?
Jeff Soules [ Do, 09 April 2009 06:42 ] [ ID #1997020 ]

Re: mod_perl conf test

--000e0cd29b32b2ff3504671a89d0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

It is the typo in my email..



On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules <soules [at] gmail.com> wrote:

> > and put the following lines in C:\Program Files\Apache Software
> > Foundation\Apache2.2\conf\httpd.conf
> >
> > PerlModule Apache2::Hello
> > <Location /hello>
> > SetHandler modperl
> > PerlResponseHandler Apache2::Hello
> > </Location>
> >
> >
> >
> > but http://localhost/hellp It gives HTTP 404 Not Found error.
>
> Just to take care of the obvious here -- you pointed the browser to
> hellp, not hello? Or is that just a typo in your email?
>

--000e0cd29b32b2ff3504671a89d0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>It is the typo in my email..</div>
<div><br><br>=A0</div>
<div class=3D"gmail_quote">On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules <sp=
an dir=3D"ltr"><<a href=3D"mailto:soules [at] gmail.com">soules [at] gmail.com</a>=
></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class=3D"im">> and put the following lines in C:\Program Files\Apac=
he Software<br>> Foundation\Apache2.2\conf\httpd.conf<br>><br>> Pe=
rlModule Apache2::Hello<br>> =A0 <Location /hello><br>> =A0 =A0=
SetHandler modperl<br>
> =A0 =A0 PerlResponseHandler Apache2::Hello<br>> =A0 </Location&g=
t;<br>><br>><br>><br>> but <a href=3D"http://localhost/hellp" t=
arget=3D"_blank">http://localhost/hellp</a> It gives HTTP 404 Not Found err=
or.<br>
<br></div>Just to take care of the obvious here -- you pointed the browser =
to<br>hellp, not hello? =A0Or is that just a typo in your email?<br></block=
quote></div><br>

--000e0cd29b32b2ff3504671a89d0--
sandhya pawar [ Do, 09 April 2009 09:53 ] [ ID #1997023 ]

Re: mod_perl conf test

On Thu, Apr 9, 2009 at 2:53 AM, sandhya pawar <sandhya.pawar03 [at] gmail.com> w=
rote:

> On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules <soules [at] gmail.com> wrote:
>>
>> > and put the following lines in C:\Program Files\Apache Software
>> > Foundation\Apache2.2\conf\httpd.conf
>> >
>> > PerlModule Apache2::Hello
>> > =A0 <Location /hello>
>> > =A0 =A0 SetHandler modperl
>> > =A0 =A0 PerlResponseHandler Apache2::Hello
>> > =A0 </Location>
>> >
>> > but http://localhost/hellp It gives HTTP 404 Not Found error.
>>
>> Just to take care of the obvious here -- you pointed the browser to
>> hellp, not hello? =A0Or is that just a typo in your email?
>
> It is the typo in my email..

One other small thing to check - does clearing the browser's cache
help? Also, do other static pages work OK?

--
best regards,
Randy
Randy Kobes [ Fr, 10 April 2009 19:27 ] [ ID #1997215 ]

Re: mod_perl conf test

--000e0cd147ea812b950467729c83
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

File does not exist: C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/hello.pm
It gives the above error?




On Fri, Apr 10, 2009 at 10:57 PM, Randy Kobes <randy.kobes [at] gmail.com> wrote:

> On Thu, Apr 9, 2009 at 2:53 AM, sandhya pawar <sandhya.pawar03 [at] gmail.com>
> wrote:
>
> > On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules <soules [at] gmail.com> wrote:
> >>
> >> > and put the following lines in C:\Program Files\Apache Software
> >> > Foundation\Apache2.2\conf\httpd.conf
> >> >
> >> > PerlModule Apache2::Hello
> >> > <Location /hello>
> >> > SetHandler modperl
> >> > PerlResponseHandler Apache2::Hello
> >> > </Location>
> >> >
> >> > but http://localhost/hellp It gives HTTP 404 Not Found error.
> >>
> >> Just to take care of the obvious here -- you pointed the browser to
> >> hellp, not hello? Or is that just a typo in your email?
> >
> > It is the typo in my email..
>
> One other small thing to check - does clearing the browser's cache
> help? Also, do other static pages work OK?
>
> --
> best regards,
> Randy
>

--000e0cd147ea812b950467729c83
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>File does not exist: C:/Program Files/Apache Software Foundation/Apach=
e2.2/htdocs/<a href=3D"http://hello.pm">hello.pm</a><br>It gives the above =
error?</div>
<div>=A0</div>
<div><br><br>=A0</div>
<div class=3D"gmail_quote">On Fri, Apr 10, 2009 at 10:57 PM, Randy Kobes <s=
pan dir=3D"ltr"><<a href=3D"mailto:randy.kobes [at] gmail.com">randy.kobes [at] gm=
ail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class=3D"im">On Thu, Apr 9, 2009 at 2:53 AM, sandhya pawar <<a href=
=3D"mailto:sandhya.pawar03 [at] gmail.com">sandhya.pawar03 [at] gmail. com</a>> wro=
te:<br><br>> On Thu, Apr 9, 2009 at 10:12 AM, Jeff Soules <<a href=3D=
"mailto:soules [at] gmail.com">soules [at] gmail.com</a>> wrote:<br>
>><br>>> > and put the following lines in C:\Program Files\A=
pache Software<br>>> > Foundation\Apache2.2\conf\httpd.conf<br>>=
;> ><br>>> > PerlModule Apache2::Hello<br>>> > =A0 =
<Location /hello><br>
>> > =A0 =A0 SetHandler modperl<br>>> > =A0 =A0 PerlRespo=
nseHandler Apache2::Hello<br>>> > =A0 </Location><br>>>=
; ><br>>> > but <a href=3D"http://localhost/hellp" target=3D"_b=
lank">http://localhost/hellp</a> It gives HTTP 404 Not Found error.<br>
>><br>>> Just to take care of the obvious here -- you pointed t=
he browser to<br>>> hellp, not hello? =A0Or is that just a typo in yo=
ur email?<br>><br>> It is the typo in my email..<br><br></div>One oth=
er small thing to check - does clearing the browser's cache<br>
help? Also, do other static pages work OK?<br><br>--<br>best regards,<br><f=
ont color=3D"#888888">Randy<br></font></blockquote></div><br>

--000e0cd147ea812b950467729c83--
sandhya pawar [ Mo, 13 April 2009 18:57 ] [ ID #1997464 ]

Re: mod_perl conf test

On Mon, Apr 13, 2009 at 11:57 AM, sandhya pawar
<sandhya.pawar03 [at] gmail.com> wrote:
> File does not exist: C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs/hello.pm
> It gives the above error?

Hello.pm (containing Apache2::Hello) should be placed within your Perl
directory (eg, C:\Perl\site\lib\Apache2\Hello.pm, if your top-level
Perl directory is C:\Perl).

--
best regards,
Randy
Randy Kobes [ Mo, 13 April 2009 19:03 ] [ ID #1997465 ]

Re: mod_perl conf test

--000e0cd14d6c0b342e04677d1bfc
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I have placed that files in C:\Perl\site\lib\Apache2\Hello.pm
but still it gives the error..

On Mon, Apr 13, 2009 at 10:33 PM, Randy Kobes <randy.kobes [at] gmail.com> wrote:

> On Mon, Apr 13, 2009 at 11:57 AM, sandhya pawar
> <sandhya.pawar03 [at] gmail.com> wrote:
> > File does not exist: C:/Program Files/Apache Software
> > Foundation/Apache2.2/htdocs/hello.pm
> > It gives the above error?
>
> Hello.pm (containing Apache2::Hello) should be placed within your Perl
> directory (eg, C:\Perl\site\lib\Apache2\Hello.pm, if your top-level
> Perl directory is C:\Perl).
>
> --
> best regards,
> Randy
>

--000e0cd14d6c0b342e04677d1bfc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>I have placed that files in C:\Perl\site\lib\Apache2\Hello.pm</div>
<div>but still it gives the error..<br><br></div>
<div class=3D"gmail_quote">On Mon, Apr 13, 2009 at 10:33 PM, Randy Kobes <s=
pan dir=3D"ltr"><<a href=3D"mailto:randy.kobes [at] gmail.com">randy.kobes [at] gm=
ail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Mon, Apr 13, 2009 at 11:57 AM=
, sandhya pawar<br>
<div class=3D"im"><<a href=3D"mailto:sandhya.pawar03 [at] gmail.com">sandhya.=
pawar03 [at] gmail.com</a>> wrote:<br></div>
<div class=3D"im">> File does not exist: C:/Program Files/Apache Softwar=
e<br>> Foundation/Apache2.2/htdocs/<a href=3D"http://hello.pm/" target=
=3D"_blank">hello.pm</a><br>> It gives the above error?<br><br></div>Hel=
lo.pm (containing Apache2::Hello) should be placed within your Perl<br>
directory (eg, C:\Perl\site\lib\Apache2\Hello.pm, if your top-level<br>Perl=
directory is C:\Perl).<br><br>--<br>best regards,<br><font color=3D"#88888=
8">Randy<br></font></blockquote></div><br>

--000e0cd14d6c0b342e04677d1bfc--
sandhya pawar [ Di, 14 April 2009 07:28 ] [ ID #1997627 ]
Webserver » gmane.comp.apache.mod-perl » mod_perl conf test

Vorheriges Thema: client denied by server configuration: C:/Apache2
Nächstes Thema: how did I get here?