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.