From owner-freebsd-questions@FreeBSD.ORG Mon Jan 19 12:51:32 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 953C5106564A for ; Mon, 19 Jan 2009 12:51:32 +0000 (UTC) (envelope-from a.smith@ukgrid.net) Received: from mx1.ukgrid.net (mx1.ukgrid.net [89.107.16.164]) by mx1.freebsd.org (Postfix) with ESMTP id EDAA68FC13 for ; Mon, 19 Jan 2009 12:51:31 +0000 (UTC) (envelope-from a.smith@ukgrid.net) Received: from www by mx1.ukgrid.net with local (Exim 4.69; FreeBSD) auth-from www envelope-from a.smith@ukgrid.net id 1LOtaZ-0005HX-76; Mon, 19 Jan 2009 12:50:47 +0000 Received: from blueice1n1.uk.ibm.com (blueice1n1.uk.ibm.com [195.212.29.67]) by horde.ukgrid.net (Horde Framework) with HTTP; Mon, 19 Jan 2009 12:50:47 +0000 Message-ID: <20090119125047.1346192x8cuo5hdw@horde.ukgrid.net> Date: Mon, 19 Jan 2009 12:50:47 +0000 From: Andy Smith To: Frank Shute References: <20090118154724.780736hzlg7x77k0@horde.ukgrid.net> <20090119060151.GA47488@melon.esperance-linux.co.uk> <20090119091612.23733vte33zp7we8@horde.ukgrid.net> <20090119121007.GA48330@melon.esperance-linux.co.uk> In-Reply-To: <20090119121007.GA48330@melon.esperance-linux.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-7.0 Sender: World Wide Web Owner Cc: freebsd-questions@freebsd.org Subject: Re: PATH used by www user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2009 12:51:33 -0000 Hi Frank, thanks a lot for looking into it. Yes one server is an older =20 FreeBSD 6.1, the other 7.0 so they certainly aren't identical servers. =20 But they do have same version of apache (2.2.9) and same version of =20 the perl script, and as far as I can tell same config for default PATH =20 etc. I had a look and there doesnt appear to be anything setting the =20 path in the apache conifg, perhaps it could be a compiled in default =20 path?! I'll ask the apache experts and see if they can help, thanks again, Andy. Quoting Frank Shute : > > Hi Andy, > > I had to look at the Camel book & although it isn't explicit, it seems > like the script inherits the environment of the calling process i.e > Apache in this case. Apache sets the environment with SetEnv (or at > least 1.3 does, I don't run 2*) as it can't inherit one from user www > since it doesn't have one. So have you had a look at httpd.conf and > .htaccess on each machine? > > BTW, one machine uses an "old" PATH with /usr/X11R6/bin in it. That > disappeared some time ago. That may or may not be a clue. > > In short, I think this is probably an Apache question & you might have > more informative answers from there. > > Sorry I can't be more helpful but quite a few Apache people run > FreeBSD and they're likely to be more help than I am. > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.