RE: Installing mod_perl on Windows 7
"Desilets, Alain" <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
> But try this :
> At the beginning of your script, add these lines :
>
> use Apache::RequestRec;
>
> my $r=shift;
> print "Hostname : ",$r->hostname,"\n";
>
> if you don't get an error, and you see the line in the output, then for sure you /are/
> running under mod_perl.
I did this and it gave me an error at this line:
> use Apache::RequestRec;
But if I replace it by
> use Apache2::RequestRec;
Then the script loads without problem. I have put a BEGIN{} block in my printenv.pl script, which prints something on the screen, and it does seem to only print the first time I execute the script. So it does seem like mod_perl is indeed working.
I guess the documentation on this page is not accurate then: