/usr/local/bin in PATH
Dmitry Sivachenko
demon at FreeBSD.org
Tue Oct 14 09:57:10 UTC 2014
On 14 окт. 2014 г., at 13:54, olli hauer <ohauer at 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!
More information about the freebsd-apache
mailing list