From owner-freebsd-questions Tue Oct 22 04:57:00 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA24476 for questions-outgoing; Tue, 22 Oct 1996 04:57:00 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA24468 for ; Tue, 22 Oct 1996 04:56:47 -0700 (PDT) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id NAA19340; Tue, 22 Oct 1996 13:55:06 +0200 (IST) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma019335; Tue Oct 22 13:54:53 1996 Message-ID: <326CB5E4.20C2@barcode.co.il> Date: Tue, 22 Oct 1996 13:54:12 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: "Daniel M. Eischen" CC: dwhite@resnet.uoregon.edu, questions@freebsd.org Subject: Re: Apache won't do CGI References: <9610221039.AA01739@iworks.InterWorks.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Daniel M. Eischen wrote: > > I just set up an internal Web server at work using FreeBSD 2.1.5 and > apache-1.1.1. That same CGI test script worked just fine when I tried > it from within a form. One thing that did screw me up for a while with > some other scripts was a mis-type in "Content-type text/plain". I forgot > the "-" in Content-type. I *know* this should work. That's not the only Apache I have running, but it is the only one that gives me trouble (all are Apache 1.1.1 on 2.1.5R machines). > > Is the script executable? Of course. If it wasn't, I would have gotten "You don't have permission to execute the script on this server" or something like that (can't remember the exact message). > > What happens when you say "perl test-cgi" (it is a perl script, right?) > from the command line. It's a shell script, and it wil run if you just say test-cgi (it has #!/bin/sh at its beginning). The same would happen with perl though. As I said before, it doesn't happen with compiled programs, but if I write a C program that exec's a script - it will happen when I try to exec from the program the script (the execle call doesn't fail though. at least it doesn't return). > > Dan Eischen > deischen@iworks.InterWorks.org Nadav