Sorry, I'm not a master. But I try to answer your question.
This is because your installation not successful. Try to install
mod_perl again with perl-5.6.0. I 've tried it and it worked good.
The script CGI you embedded is not running under mod_perl, but it run as a
common CGI.
The installation step like here
$ perl Makefile.PL EVERYTHING=1 DO_HTTPD=1 USE_APACI=1
APACHE_SRC=../apache_1.3.6/src APACHE_PREFIX=/usr/local/apache
$ make
$ make test TEST_VERBOSE=1
$ make install
then restart your apache
Thx.
On Thu, 3 Aug 2000, yusun wrote:
> I have installed the mod_perl and changed the httpd.conf as
>
> Alias /cgi-perl/ /usr/ns-home/cgi-bin/
> <Location /cgi-perl/>
> #AllowOverride None
> SetHandler perl-script
> PerlHandler Apache::PerlRun
> Options +ExecCGI
> allow from all
> PerlSendHeader On
> PerlSetVar PerlRunOnce On
> </Location>
>
> When I restarted httpd, there was no error reported.
> But when I used the following CGI to test whether the mod_perl was working
> or not.
> The report was no. Why?
>
> ###########
> #!/usr/bin/perl
> print "Content-type: text/plain\n\n";
> print "Server's environment\n";
> foreach ( keys %ENV ) {
> print "$_\t$ENV{$_}\n";
> }
> #####
>
> The result is
> :
> :
> GATEWAY_INTERFACE CGI/1.1
> :
>
> It means that I have configured this location to run under mod_cgi and not
> mod_perl.
> How can I configure the location to run under mod_perl?
> Thanks!
>
>
>
>