Looks like you didn't tell http.conf where your .pl scripts are.
My httpd.conf includes a :
##Mod_Perl stuff

 Alias /perl/ /var/www/perl/
  <Location /perl/>
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
  </Location>
#####
Chapter 2: Practical mod_perl

Jay Scherrer


On Wednesday 26 January 2005 08:46 pm, Randy Kobes wrote:
> On Wed, 26 Jan 2005, Edward Wijaya wrote:
> > Dear all,
> >
> > I am trying my mod_perl in my Apache webserver for the first time
> > (under Mdk-Linux).
> > I have created a simple "print hello world" script with the name
> > 'hello.pl' and I stored it under 'var/www/cgi-bin/' but whenever
> > I try to open the script with http://localhost/cgi-bin/hello.pl
> >
> > It gives "Internal Server Error" like this:
> > http://paste.phpfi.com/48050.
> >
> > BTW my  httpd.conf            is like this:
> > http://paste.phpfi.com/48067 and my  httpd2.perl.conf      is
> > like this: http://paste.phpfi.com/48068
> >
> > Can anybody suggest what's wrong with my approach?
> > Thanks a lot beforehand.
>
> You should check out
>   http://perl.apache.org/docs/2.0/user/intro/start_fast.html
> which gives you a quick guide to configuring and testing
> mod_perl, both with a simple registry script and with a
> simple response handler.

Reply via email to