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 =D0=BE=D0=BA=D1=82. 2014 =D0=B3., at 13:54, olli hauer = <ohauer@gmx.de> wrote: > On 2014-10-14 09:38, Dmitry Sivachenko wrote: >> Hello! >>=20 >> Can we please adopt a change similar to=20 >> = http://svnweb.freebsd.org/ports/head/devel/hadoop2/files/datanode.in?r1=3D= 360650&r2=3D364992 >>=20 >> for apache startup script so after a reboot cgi-scripts can find = interpreters like python from /usr/local/bin/ ? >>=20 >> Thanks. >=20 > Have you already tried envvars? >=20 > default path: > PATH=3D"/sbin:/bin:/usr/sbin:/usr/bin" >=20 > Now create a file ending with '.env' in apache2[24]/envvars and = restart apache >=20 > # file: etc/apache22/envvars/myvars.env > PATH=3D${PATH}:/additonal/path >=20 >=20 > New path: > PATH=3D"/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>