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

*****************************************************************************
So long as the government has the power to invade our lives, rummage through 
our records, and take what it wants from our income, we will have only as 
much freedom and take-home pay as the politicians condescend to let us have.

-Harry Browne Libertarian Canidate for President (www.HarryBrowne2000.org)
******************************************************************************

Reply via email to