Stas/Everyone, To follow up. With the starting and stopping of Apache and looking at the log, I see entries like "Child 1032: Waiting for 250 worker threads to exit." I was gettiong "Low virtual memory" errors from Win/2000, so I added ThreadsPerChild 24 to the http.conf. This makes it stop quicker and use a whole lot less memory. Also, the error at the browser comes back faster.
I added use "Apache::compat;" to the test program after "use ModPerl::Registry;" hoping it would stop it from complaining about CGI.pm. But, I still get Error 500 in the browser and "[error] 2724: ModPerl::Registry: `Can't call method "args" on an undefined value at c:/perl/5.6.1/lib/CGI.pm line 433." in the log. The build I'm using is modperl-2.0_20020422222700.tar.gz. I tried adding PerlModule Apache2 to http.conf right after "LoadModule perl_module modules/mod_perl.so" and I get a "Application Error/memory could not be read". The same CGI.pm error appears in the log. Also, the CGI.pm I have is dated 03/03/2001 and came with perl 5.6.1. Thanks Chuck ----- Original Message ----- From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Chuck Goehring" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, April 23, 2002 11:12 AM Subject: Re: startup for Apache 2.0/mod_perl 1.99 > 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 >