Date: Fri, 05 Jul 2019 07:59:10 +0000 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 Message-ID: <bug-238999-16115-PXSOlsN6mH@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-238999-16115@https.bugs.freebsd.org/bugzilla/> References: <bug-238999-16115@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-apache mailing list <apache@FreeBSD.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238999-16115-PXSOlsN6mH>