From owner-freebsd-questions Sat May 15 7:27: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from moe.nycrc.net (gabriel.nycrc.net [209.73.202.66]) by hub.freebsd.org (Postfix) with SMTP id 9322814FF1 for ; Sat, 15 May 1999 07:26:49 -0700 (PDT) (envelope-from vince@moe.nycrc.net) Received: (qmail 2957 invoked by uid 1000); 15 May 1999 14:26:54 -0000 Date: Sat, 15 May 1999 10:26:54 -0400 From: Vince Gonzalez To: Donald Wilde Cc: questions@freebsd.org Subject: Re: Apache chokes on compiled CGI? Message-ID: <19990515102653.B2719@moe.nycrc.net> References: <373D76C2.C12916E5@thuntek.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <373D76C2.C12916E5@thuntek.net>; from Donald Wilde on Sat, May 15, 1999 at 07:29:38AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, May 15, 1999 at 07:29:38AM -0600, Donald Wilde wrote: > I just got back to work on my C++ CGI, and now, when I execute programs > that _did_ work before, they die. I just CVSup'd to the latest > 3.1-STABLE, which now ID's itself as 3.2-RELEASE, and my Apache is 1.3.6 > as compiled from the Ports. I had been working with 3.1S (#8), but it's > still there. > > What I get is a straight text output that is mostly garbage that looks > like binary, but always begins with the word ELF. The program runs > successfully from the command line, but chokes in Apache when invoked as > CGI. > > I'm going to redo the Apache port from sources, but I thought I'd put > this out there while I do so in case somebody else has seen it. Sounds like apache is dumping the actual binary instead of executing it. Maybe your apache conf got nuked? It sounds like you need to fix your ScriptAlias in httpd.conf. --vince To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message