Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 45792 invoked from network); 11 Sep 2003 19:33:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Sep 2003 19:33:33 -0000 Received: (qmail 7208 invoked by uid 500); 11 Sep 2003 19:33:05 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 7197 invoked by uid 500); 11 Sep 2003 19:33:05 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 7179 invoked from network); 11 Sep 2003 19:33:04 -0000 Received: from unknown (HELO mail.messagingengine.com) (66.111.4.26) by daedalus.apache.org with SMTP; 11 Sep 2003 19:33:04 -0000 Received: from mail.messagingengine.com (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 9AC421BA193 for ; Thu, 11 Sep 2003 15:33:09 -0400 (EDT) Received: from 10.202.2.150 ([10.202.2.150] helo=mail.messagingengine.com) by messagingengine.com with SMTP; Thu, 11 Sep 2003 15:33:09 -0400 X-Epoch: 1063308789 X-Sasl-enc: 475WFQwzYF43wXlR2eafKQ Received: from bronfman504 (Toronto-HSE-ppp3743544.sympatico.ca [67.68.77.129]) by mail.messagingengine.com (Postfix) with ESMTP id 5A21D1B5A7C for ; Thu, 11 Sep 2003 15:33:09 -0400 (EDT) Date: Thu, 11 Sep 2003 15:37:04 -0400 (Eastern Daylight Time) From: Joshua Slive To: users@httpd.apache.org In-Reply-To: <6.0.0.22.2.20030911121447.01cf12a0@mail.ideaslive.com> Message-ID: References: <6.0.0.22.2.20030911092855.01c19a98@mail.ideaslive.com> <6.0.0.22.2.20030911112501.01aead10@mail.ideaslive.com> <6.0.0.22.2.20030911121447.01cf12a0@mail.ideaslive.com> X-X-Sender: slive@fastmail.fm@mail.messagingengine.com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Default Index File as CGI script X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, 11 Sep 2003, Brian Leader wrote: > OK, some progress I think. > > I changed the permission of the fake404.cgi file to 755. It still gives > the same error in the browser, but now in the error log I get: > > [error] (8)Exec format error: exec of /var/www/cgi-bin/fake404.cgi failed Don't bother running it from apache until it works from the command line. > > When I run it from the command line I get: > > : No such file or directory > : command not found > Content-Type: text/html > Status: 404 Not Found > > > Perhaps it is related to the first line of the file? > > !/bin/sh Yes. It would be very unusual to have a unix system without a functioning /bin/sh, but it appears that you might have one. What happens when you simply type "/bin/sh"? In any case, the script will probably run if you simply remove the first line. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org