Date: Tue, 14 Oct 2014 13:57:06 +0400 From: Dmitry Sivachenko <demon@FreeBSD.org> To: "apache@FreeBSD.org" <apache@FreeBSD.org> Subject: Re: /usr/local/bin in PATH Message-ID: <635820D5-F078-4A1D-89D2-420880A69C44@FreeBSD.org> In-Reply-To: <543CF2BC.1070008@gmx.de> References: <DA9070DC-AD2C-4911-8FE7-BF43871044F0@FreeBSD.org> <543CF2BC.1070008@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 14 окт. 2014 г., at 13:54, olli hauer <ohauer@gmx.de> wrote: > On 2014-10-14 09:38, Dmitry Sivachenko wrote: >> Hello! >> >> Can we please adopt a change similar to >> http://svnweb.freebsd.org/ports/head/devel/hadoop2/files/datanode.in?r1=360650&r2=364992 >> >> for apache startup script so after a reboot cgi-scripts can find interpreters like python from /usr/local/bin/ ? >> >> Thanks. > > Have you already tried envvars? > > default path: > PATH="/sbin:/bin:/usr/sbin:/usr/bin" > > Now create a file ending with '.env' in apache2[24]/envvars and restart apache > > # file: etc/apache22/envvars/myvars.env > PATH=${PATH}:/additonal/path > > > New path: > PATH="/sbin:/bin:/usr/sbin:/usr/bin:/additonal/path" Ah, thanks, did not know about this technique!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?635820D5-F078-4A1D-89D2-420880A69C44>
