From owner-freebsd-apache@freebsd.org Fri Jul 5 07:59:14 2019 Return-Path: Delivered-To: freebsd-apache@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34CB715E7A9E for ; Fri, 5 Jul 2019 07:59:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AC2CE8AA91 for ; Fri, 5 Jul 2019 07:59:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 66ADE15E7A9A; Fri, 5 Jul 2019 07:59:13 +0000 (UTC) Delivered-To: apache@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F64215E7A98 for ; Fri, 5 Jul 2019 07:59:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D35FB8AA8D for ; Fri, 5 Jul 2019 07:59:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 13728128A for ; Fri, 5 Jul 2019 07:59:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x657xBjI019816 for ; Fri, 5 Jul 2019 07:59:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x657xBr6019815 for apache@FreeBSD.org; Fri, 5 Jul 2019 07:59:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: apache@FreeBSD.org Subject: maintainer-feedback requested: [Bug 238999] www/apache24: Add /usr/local/bin (and maybe /usr/local/sbin) to apache24 env PATH Date: Fri, 05 Jul 2019 07:59:10 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: easy X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jul 2019 07:59:14 -0000 Bugzilla Automation has asked freebsd-apache mailing list for maintainer-feedback: Bug 238999: www/apache24: Add /usr/local/bin (and maybe /usr/local/sbin) to apache24 env PATH https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238999 --- Description --- Hello, I found that the default env path in apache24 is set to: PATH=3D/bin:/usr/bin:/sbin:/usr/sbin In FreeBSD all installed ports/pkgs are in /usr/local so binary files are n= ot found if the whole path for it it's not specified. For example I've installed NextCloud (php), it use "gs" to generate pdf previews for uploaded pdfs. I found it was not working because it did not f= ound the gs command (not in PATH) although gs is installed. I corrected in may local server adding the file: /usr/local/etc/apache24/envvars.d/path.env With: PATH=3D"/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/sbin" Then restart apache24. This "bug" is related to the compiled pkg version, maybe it can be modified/customized in port version, I have not tested. But anyway I think = it should be compiled by default adding /usr/local/bin (and sbin) in env PATH.= Or adding the path.env file to the pkg. Thanks.