From owner-freebsd-questions Thu Dec 28 10:01:18 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA20023 for questions-outgoing; Thu, 28 Dec 1995 10:01:18 -0800 (PST) Received: from ferrari.sfu.ca (ferrari.sfu.ca [142.58.110.11]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id KAA20011 for ; Thu, 28 Dec 1995 10:01:13 -0800 (PST) Received: from gumby.ve7zd.ampr.org ([142.58.14.242]) by ferrari.sfu.ca with SMTP (8.7.1/SFU-2.6H) id KAA22136 for (from mcquiggi@sfu.ca); Thu, 28 Dec 1995 10:01:11 -0800 (PST) Message-Id: <199512281801.KAA22136@ferrari.sfu.ca> X-Sender: mcquiggi@ferrari.sfu.ca X-Mailer: Windows Eudora Light Version 1.5.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 28 Dec 1995 10:00:47 -0800 To: questions@freebsd.org From: Kevin McQuiggin Subject: Problem with NCSA httpd v1.5 Sender: owner-questions@freebsd.org Precedence: bulk I have a very minor problem with NCSA httpd 1.5 running on FBSD 2.1: When I run a cgi program written in C (as opposed to a shell script), and that program uses environment variables (such as SERVER_PORT or CONTENT_LENGTH) that should be set by httpd prior to doing an execve, the environment variables get lost and are NOT set by the time my program is invoked. Calls to getenv() return NULL for all of these variables. As a result some custom scripts that I wrote are all broken. They all ran fine under FreeBSD 1.1. Of course I've recompiled httpd and the scripts for 2.1. This may in fact be NCSA's problem, but I wonder first if there's anything specific that I have to do or change in the configuration of 2.1 that affects how environment variables are passed to programs started by execve??? In the meantime I'm modifying httpd to generate some debug info verifying that the variables get set prior to the exec call. Any thoughts or suggestions? Kevin --- Kevin McQuiggin VE7ZD mcquiggi@sfu.ca