Chuck Goehring wrote:
> Stas,
> First, there was no mod_perl 1.2x installed on this machine. I didn't think
> I would need it, but I'm guessing.
>
> This was as you say. The <Location /perl> didn't aggree with the registry
> loaded in startup. That fixed that problem but now it complains about
> CGI.pm as follows:
>
> [Tue Apr 23 10:10:00 2002] [error] 2676: ModPerl::Registry: `Can't call
> method "args" on an undefined value at c:/perl/5.6.1/lib/CGI.pm line 433.
It's a very bad idea to try to find the problem without reducing the
setup to a bare minimum.
Does the very basic setup work for you? If it does, start from here and
add things till you hit the problem.
httpd.conf:
-----------
LoadModule perl_module modules/mod_perl.so
Alias /perl e:/Apache2/cgi-perl
PerlRequire e:\apache2\conf\startup.cgi
<Location /perl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options ExecCGI
PerlSendHeader On
</Location>
startup.pl:
-----------
#! /perl/5.6.1/bin/MSWin32-x86-multi-thread/perl.exe -w
use strict;
use Apache2 ();
use Apache::compat;
and a test script:
#! c:/perl/5.6.1/bin/MSWin32-x86-multi-thread/perl.exe -w
use ModPerl::Registry;
use CGI;
$q = new CGI;
print $q->header,
$q->start_html(),
'Hello',
$q->end_html();
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com