Hi,

 

I've recently set up an apache 2.0.55 server on windows running mod_perl 2.0.2

 

The setup seemed quite straightforward and I'm now trying to following tutorials to get to grips with mod_perl.

 

I have it set up so that the main cg-bin directory just runs generic perl.

 

And using location directives :

 

Alias /apps/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"

<Location /apps>

            SetHandler perl-script

            PerlHandler ModPerl::Registry

            Options ExecCGI

</Location>

 

Alias /compat/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"

<Location /compat>

            SetHandler perl-script

            PerlHandler ModPerl::PerlRun

            Options ExecCGI

</Location>

 

I've set it up so that the scripts under cgi-bin can be run under modperl by changing the url used to access.

 

Now when I run a simple test script under generic perl :

 

#!perl -w

use strict;

print "Content-type: text/plain\r\n\r\n";

warn "Gaaaaah!";

 

A warning is put in the apache error log file as it should but when I run this same script under modperl or perlrun no warning appears.

 

Would anyone happen to know what I'm doing wrong here?

Reply via email to