Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2009 12:44:33 +0100
From:      Jase Thew <bazerka@beardz.net>
To:        Barry Pederson <bp@barryp.org>
Cc:        xer <xernet@hotmail.it>, freebsd-stable@freebsd.org
Subject:   Re: apache 2.0.63 and php5
Message-ID:  <49E325A1.9000602@beardz.net>
In-Reply-To: <49E20DFB.9000208@barryp.org>
References:  <20090409120815.A0FAB10658D2@hub.freebsd.org>	<BAY126-DS4D615E21BA0F2E175F2E6A3810@phx.gbl> <49E20DFB.9000208@barryp.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Barry Pederson wrote:

> 
> I've been burned by this a fair number of times, wish there was some 
> good way of having things starting from /usr/local/etc/rc.d to have 
> /usr/local/bin and sbin in the path on a consistent basis.
> 
> 	Barry

Hi,

/etc/profile is the system wide profile for sh shell. So, should you 
need to do this for all sh scripts ( including /usr/local/etc/rc.d/ 
scripts), simply add a PATH line to /etc/profile, eg:

PATH=/foo/bar:/bar/baz:$PATH; export PATH

or

PATH=$PATH:/foo/bar:/bar/baz; export PATH

depending on whether you want your additional directories to be searched 
before or after the default path.

Regards,

Jase.



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