Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 1995 10:00:47 -0800
From:      Kevin McQuiggin <mcquiggi@sfu.ca>
To:        questions@freebsd.org
Subject:   Problem with NCSA httpd v1.5
Message-ID:  <199512281801.KAA22136@ferrari.sfu.ca>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512281801.KAA22136>