Date: Tue, 22 Oct 1996 13:54:12 +0200 From: Nadav Eiron <nadav@barcode.co.il> To: "Daniel M. Eischen" <deischen@iworks.InterWorks.org> Cc: dwhite@resnet.uoregon.edu, questions@freebsd.org Subject: Re: Apache won't do CGI Message-ID: <326CB5E4.20C2@barcode.co.il> References: <9610221039.AA01739@iworks.InterWorks.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel M. Eischen wrote: > <snip> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?326CB5E4.20C2>