discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep tool as Apache CGI


From: Chris B. Vetter
Subject: Re: GNUstep tool as Apache CGI
Date: Mon, 2 Dec 2002 15:41:18 -0800

On Tue, 3 Dec 2002 00:14:00 +0100
Andreas Hoeschler <ahoesch@smartsoft.de> wrote:
> Hi all,
[...]
> This currently does not work. Obviously the tool is not even startet 
> since stuff that is configured in GNUstep.sh is missing. How can I
> cause Apache to call ". /opt/GNUstep/System/Makefiles/GNUstep.sh"
> beore starting my CGI?

Through a wrapper ;-) That's what wrappers are for.
Apache will, AFAIK, not allow you 'source' in any shell scripts during
run-time for security reasons - however - you can

a) add all necessary environment variables in your httpd.conf file
   using SetEnv(If)
or
b) use a wrapper that sources in GNUstep.sh and then starts apache.
   Apache will use the environment set upon launch-time -- just make
   sure that GNUstep is properly set-up for the user you use to run
   your httpd as, eg. www:www or nobody:nogroup.
   /path/to/cgi-bin/printenv should show the GNUstep environment (that
   is, it does on my box)

-- 
Chris
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]