Try adding "ExecCGI" to your Options like so:
<Directory /home/httpd/cgi-bin>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow From all
</Directory>
Heinz Wittenbecher wrote:
>
> No luck yet.
>
> First line in script: and whereis perl confirms that's where it is.
> #!/usr/bin/perl
>
> apache conf sections:
>
> ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> ScriptAlias /protected-cgi-bin/ /home/httpd/protected-cgi-bin/
>
> -----
>
> <Directory /home/httpd/cgi-bin>
> AllowOverride None
> Options None
> Order allow,deny
> Allow From all
> </Directory>
>
> Since I can run a standard shellscript, located in the cgi-bin directory, is
> there a security situation I missed re perl scripts specifically?
>
> Heinz
>
> ----- Original Message -----
> From: "David Talbot" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 23, 2000 8:31 AM
> Subject: Re: [expert] cgi-bin problems / file not found running perl/cgi
> script (repost)
>
> > On Wed, 23 Aug 2000, you wrote:
> > > [Apologies in advance if this appears twice but since this post didn't
> > > appear overnight I thought I'd try again]
> > >
> > > I'm trying to execute a simple perl script. Have tried several.
> > >
> > > Web Server complains about "Internal Server" error
> > > and in the apache error_log it's an error 2: File or directory not
> found.
> > > (but the script is in the cgi-bin directory)
> > >
> > > httpd.conf has the /cgi-bin/ set to /home/httpd/cgi-bin/
> > >
> > > directory is owned by root with permissions at 755, as it was left per
> > > mandrate install process.
> > > perl script owned by root with chmod at 755
> > >
> > > I've tried it on several machines (all Mandrake or RedHat flavored) with
> > > same results.
> > > Have tried it with username other than root. have tried with perms at
> 777,
> > > all to no avail.
> > >
> > > A standard shell (bash) script works ok.
> > >
> > > Location of perl is as per first line in perl script.
> > > Have tried no extension, .pl and .cgi extensions.
> > >
> > > What did I overlook?
> > >
> > > Thanks in advance for any hints/suggestions.
> > >
> > > Heinz
> > >
> > > ***********************************************************************
> > > * Heinz Wittenbecher, Byte Designs Ltd. Voice: (604) 534-0722 *
> > > * [EMAIL PROTECTED] Langley, BC CANADA Fax: (604) 534-2601 *
> > > * http://www.bytedesigns.com *
> >
> >
> > Check the first line of your perl script.
> >
> > Make sure it's
> > #!/usr/bin/perl
> >
> > Let me know if that was it.
> > --
> > -David Talbot
> >