From owner-freebsd-apache@FreeBSD.ORG Tue Oct 14 09:57:10 2014 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A73DB633 for ; Tue, 14 Oct 2014 09:57:10 +0000 (UTC) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E9532BA for ; Tue, 14 Oct 2014 09:57:10 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id 10so7903778lbg.0 for ; Tue, 14 Oct 2014 02:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=w5khdtF/Oiw8Nxr6e/XSYsGtbZGINJNYuvIvCJXgQu4=; b=tjloqYokXh+kytfwPX9as4X62bU3UHfR6d1x5vRmfCSCN1F0+6djemj/pZSry4Ubwa 5r7Tj8mq+4trQVhccJwKbIZGoBv6Vrg2IlQyYu8vOmuiGLbM8NADEe+yl+Bo3nBSgvHs peh+3q+Y049w2vMTjztju6nuGRUZtuSVIkzcTgCbZL4cW1LIfES5rlbgfHvt4gZaDTlU gjJPV4eVyBZRN9G0c2mQZYCHVNlmqiGQXWbtI2sFtJE2gdNwcn2ToSISbvLDqXloA1MJ 2J64mYOLO/gtSHNWmCYDgH7PMnnIVC31Cs1gttn32P4DyNtp/c/5+k65wPSfM/ghslQ0 m0kQ== X-Received: by 10.112.148.199 with SMTP id tu7mr4250177lbb.7.1413280628083; Tue, 14 Oct 2014 02:57:08 -0700 (PDT) Received: from ?IPv6:2a02:6b8::408:7d00:ebe8:f55:529f? ([2a02:6b8:0:408:7d00:ebe8:f55:529f]) by mx.google.com with ESMTPSA id l1sm3979518lag.42.2014.10.14.02.57.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 02:57:07 -0700 (PDT) Sender: Dmitry Sivachenko Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: /usr/local/bin in PATH From: Dmitry Sivachenko In-Reply-To: <543CF2BC.1070008@gmx.de> Date: Tue, 14 Oct 2014 13:57:06 +0400 Content-Transfer-Encoding: quoted-printable Message-Id: <635820D5-F078-4A1D-89D2-420880A69C44@FreeBSD.org> References: <543CF2BC.1070008@gmx.de> To: "apache@FreeBSD.org" X-Mailer: Apple Mail (2.1878.6) 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:57:10 -0000 On 14 =D0=BE=D0=BA=D1=82. 2014 =D0=B3., at 13:54, olli hauer = 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!=