From owner-freebsd-questions@freebsd.org Thu Apr 28 10:51:31 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E135B1F452 for ; Thu, 28 Apr 2016 10:51:31 +0000 (UTC) (envelope-from fluca1978@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27FB1135E for ; Thu, 28 Apr 2016 10:51:31 +0000 (UTC) (envelope-from fluca1978@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id a17so58333007wme.0 for ; Thu, 28 Apr 2016 03:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=JdDZhX3wGgVvTKGRKGMtKdhah1Bl/pBf3CQmlXsB1us=; b=fRV9g5zPvG1UggiUUKyK6EJo5wSyuTVZusZvQbgn/dxrsSdLYQH9FouyWaLoBXW91d zJ1wu8nfObAPtWKgK8F9WO4lIAu0Sj5/dsit/dxYcOZ0IPgnWgk6AnuTR3txWP8I708Q V3fENBPbbQhcXBZBfQq58F2xpdljKj+9WfMhzZ1UGR4ram5ps9L8CT+F6IcelY2hC//3 gtCT7UZe1Mcp72bNIZBQoz7VeJlToLnqRfd98ZpoM9T8hxjiCz6bR9tChM2sQjYoYW6y nSlPT3MikJozG29dke9oZ+Pd7lix9OqMz5QjeCE8ZupHOPSqvp8wTJp2BjYlRMgIpg8m M4zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=JdDZhX3wGgVvTKGRKGMtKdhah1Bl/pBf3CQmlXsB1us=; b=A161UVOxAAlIqjLj8v+NJ+3HKR0F+8a+WiWy0UHWFxU28p1NP7hpTPyQF+QVz0VLqb l6+LU8mmxhSg/7q8eBVihEsseF5zWZER5QK+PTN+5LQvKrs6JJsW1Vn+F1vpB7jNUlCP JLkb6MY0sMWyXOw6M5A6Xb4bRzvuJIEkqkDQPpVgjTQKz1Ow+IWHzr7EFJQv3sqc1Vev XoENl82tT2SjXZ1EYRJtvv0JYFAMmvWwoX/AOQc6hxpe9IJ9tdF6O7oJkBCyCATH7kK7 O+zShjq09zbPPIaJbLSPf6u1aa4swlpG0NIXECsFYi9528QklfLI042U3iRV9XMqgJ2r pf7g== X-Gm-Message-State: AOPr4FVb3UmjRPyjGrY8KRPxcuzpa0Y0TgEveDnrLVM3oIOIIpj61Zf24bJWhJpqWDwubYtcbI+KbLqhniykgg== MIME-Version: 1.0 X-Received: by 10.28.53.193 with SMTP id c184mr32127175wma.93.1461840689331; Thu, 28 Apr 2016 03:51:29 -0700 (PDT) Sender: fluca1978@gmail.com Received: by 10.195.8.133 with HTTP; Thu, 28 Apr 2016 03:51:29 -0700 (PDT) In-Reply-To: <20160428094002.GA43096@box-fra-01.niklaas.eu> References: <20160427082142.fd56427e6b96fb6fb2b29035@sohara.org> <20160427133304.319a997b@gumby.homeunix.com> <20160427120704.GA77440@becker.bs.l> <20160428094002.GA43096@box-fra-01.niklaas.eu> Date: Thu, 28 Apr 2016 12:51:29 +0200 X-Google-Sender-Auth: DDRICpfnK2uyli5bmSCMuH0hjiM Message-ID: Subject: Re: Why is www's $PATH only /usr/bin:/bin? From: Luca Ferrari To: freebsd-questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2016 10:51:31 -0000 On Thu, Apr 28, 2016 at 11:40 AM, Niklaas Baudet von Gersdorff wrote: > In NGINX's configuration it's possible to change php.ini settings for > particular server processes. I'll go for that. If that's not possible I'll try > to spawn a separate php-fpm process that configured the way I need it. And if > that's not possible I'll hardcode a function in PHP. Another way, less dynamic but I suspect a little more robust, is to use a deployment that creates/adjusts the right path to the right command. For instance you can have a PHP config file with variables that point to commands (full path) and have a deployment script to adjust such values to installations. I use this technique when placing the same application over sligthly different servers. Luca