Thanks! You solve my problem.
I had set
<directory /home/*/cgi-bin>
           SetHandler cgi-script

So, though I set SetHandler perl-script in <Location /home/my/cgi-bin>, it
still worked as cgi-script.
Now I change the directory to /usr/local/apache/htdocs/test. Then it works
well.
The report is
GATEWAY_INTERFACE CGI-Perl/1.1
Thanks

----- Original Message -----
From: "Tom Brown" <[EMAIL PROTECTED]>
To: "yusun" <[EMAIL PROTECTED]>
Sent: Friday, August 04, 2000 12:16 PM
Subject: Re: mod_perl


>
> you've obviously got a ScriptAlias in place for that directory... you
> _must_ ... either that or you've set mod_cgi as the handler for *.cgi
> scripts somewhere.
>
> I don't remember the start of this thread, so I don't know what fragments
> of your httpd.conf file you have posted... but some of the directories you
> listed below seem very strange...
>
> your test script is in /usr/src/apache..../ ? I'd expect it under
> /home/httpd/ or something like that... e.g. a web_content directory
>
> Also your test URL seems a little strange
> "http://localhost/ns-home/cgi-bin/test.cgi" ... as a rule, mod_perl is
> _not_ used for a /cgi-bin/ directory, a script alias is used to hand all
> files in that directory off to mod_cgi... try running your script from
> another directory...
>
> On Fri, 4 Aug 2000, yusun wrote:
>
> > Sorry for answering late. I slept for a while.
> > I have answered the questions you asked.
> > By the way, did you got to the http://perl.apache.org/guide/ by
youselves?
> > If you did, you should notice, last time, all I wrote such as the
install
> > steps and the CGI script are from there.
> > The only purpose I posted my question is to get help.
> > The only purpose of the setting of  [EMAIL PROTECTED] is to help each
other
> > solve problems.
> > I do not like to see that kind of condemn any more.
> > If you are an expert and gentleman, to behave like it, OK?
> >
> > ----- Original Message -----
> > From: "Tobias Hoellrich" <[EMAIL PROTECTED]>
> > To: "yusun" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Thursday, August 03, 2000 11:15 PM
> > Subject: Re: mod_perl
> >
> >
> > > 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.
> >
> > ***yes, I have read it millions of times.
> >
> >
> > > 2.) Does mod_perl show up in the list of compiled in modules (output
from
> > > 'httpd -l')?
> > *************
> > Compiled-in modules:
> >   http_core.c
> >   mod_so.c
> >   mod_php4.c
> >   mod_perl.c
> >
> > > 3.) What does perl's 'HEAD http://localhost/' tell you for your server
> > > (output)?
> > **********
> > The apache is working
> >
> > > 4.) What is the filename of your testscript?
> > *****
> > test.cgi
> >
> > > 5.) Where is it installed (directory) ?
> >
> > **/usr/local/src/apache_1.3.12
> >   %cd /usr/src
> >   %tar xzvf apache_1.24.tar.gz
> >   % tar xzvf mod_perl-1.24.tar.gz
> >   % cd mod_perl-1.24
> >   % perl Makefile.PL APACHE_SRC=../apache_1.3.12src \
> >     DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
> >   % make && make test && make install
> >   % cd ../apache_1.3.12
> >   % make install
> >
> > > 6.) What URL are you using when you access it?
> >
> > **localhost/ns-home/cgi-bin/test.cgi
> >
> > > 7.) Which conf-file are you modifying (full pathname)?
> >
> > **/usr/local/apache/conf/httpd.conf
> >
> > > 8.) Can you proof that modifications to the conf-file really change
the
> > servers
> > > behaviour?
> > ***Yes. If I change some thing in it in a wrong way, after I
> > $../bin/apachetl start, it will report error.
> >
> > > 9.) Which server are you starting (full pathname)?
> > **localhost
> > ***/usr/local/apache/bin/apachectl start
> >
> > > 10.) Can you substitute the "xxx" below with real version numbers?
> >
> > *****apache_1.3.12
> > >
> > > 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
> > >
> > The real problem is why the recult is not
> > GATEWAY_INTERFACE       CGI-Perl/1.1
> >
> >
> >
>
>
> ----------------------------------------------------------------------
> [EMAIL PROTECTED]   | What I like about deadlines is the lovely
> http://BareMetal.com/  | whooshing they make as they rush past.
> web hosting since '95  | - Douglas Adams
>

Reply via email to