Date: Tue, 14 Oct 2014 11:54:04 +0200 From: olli hauer <ohauer@gmx.de> To: apache@freebsd.org Cc: Dmitry Sivachenko <demon@FreeBSD.org> Subject: Re: /usr/local/bin in PATH Message-ID: <543CF2BC.1070008@gmx.de> In-Reply-To: <DA9070DC-AD2C-4911-8FE7-BF43871044F0@FreeBSD.org> References: <DA9070DC-AD2C-4911-8FE7-BF43871044F0@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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" -- Regards, olli
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?543CF2BC.1070008>