Yusun,

your questions don't get better if you post them over and over again. Can you
answer the following questions below:
1.) Have you read through the guide at http://perl.apache.org/guide/ ? Millions
of people have spent thousands of hours compiling the information in there. I'm
sure you will find some really valuable informatio.
2.) Does mod_perl show up in the list of compiled in modules (output from
'httpd -l')?
3.) What does perl's 'HEAD http://localhost/' tell you for your server
(output)?
4.) What is the filename of your testscript?
5.) Where is it installed (directory) ?
6.) What URL are you using when you access it?
7.) Which conf-file are you modifying (full pathname)?
8.) Can you proof that modifications to the conf-file really change the servers
behaviour?
9.) Which server are you starting (full pathname)?
10.) Can you substitute the "xxx" below with real version numbers?

Only if you can provide answers to all questions above we will be able to take
the next step in trying to figure out what you did wrong. And don't dare
posting another message unless you answer "Yes" to question 1 :-)

Tobias



At 10:46 PM 8/3/00 +0900, you wrote: 
>
> I have installed the mod_perl 
>
>   % tar xzvf apache_x.x.x.tar.gz
>   % tar xzvf mod_perl-x.xx.tar.gz
>   % cd mod_perl-x.xx
>   % perl Makefile.PL APACHE_SRC=../apache_x.x.x/src \
>     DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
>   % make && make test && make install
>   % cd ../apache_x.x.x
>   % make install
> ########
> The report said it is success. 
> Then I 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!
>




Reply via email to