From owner-freebsd-apache@FreeBSD.ORG Tue Oct 14 09:54:10 2014 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 657B05B5 for ; Tue, 14 Oct 2014 09:54:10 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 01E0F272 for ; Tue, 14 Oct 2014 09:54:10 +0000 (UTC) Received: from [10.6.25.100] ([213.61.170.110]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MYwVv-1Xj5DD3wJ9-00Vf8K; Tue, 14 Oct 2014 11:54:04 +0200 Message-ID: <543CF2BC.1070008@gmx.de> Date: Tue, 14 Oct 2014 11:54:04 +0200 From: olli hauer Reply-To: "apache@FreeBSD.org" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: apache@freebsd.org Subject: Re: /usr/local/bin in PATH References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:8bb4TO1ErBr/wBnsayjIEfMq+cVa8y1rls6ud2EG/4dzFvSHYQL qPnL3BxVAEd30dAEp9omgd28ywHxR0ajMZNvqw821LoJdTT2vee+D+E0FOyBC57iCPN3PGG 40AusL//JlbCybotuJfDsvJKjUUamVgA7RkvYBMDGd6XQppPss3wh1P2n8lWef3EKNwQ1Cc CLsFERXucnc5n9GBTaNEQ== X-UI-Out-Filterresults: notjunk:1; Cc: Dmitry Sivachenko X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2014 09:54:10 -0000 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