Bug 238999 - www/apache24: Add /usr/local/bin (and maybe /usr/local/sbin) to apache24 env PATH
Summary: www/apache24: Add /usr/local/bin (and maybe /usr/local/sbin) to apache24 env ...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-apache (Nobody)
Keywords: easy
Depends on:
Reported: 2019-07-05 07:59 UTC by Indeax
Modified: 2020-04-28 18:24 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (apache)


Note You need to log in before you can comment on or make changes to this bug.
Description Indeax 2019-07-05 07:59:10 UTC

I found that the default env path in apache24 is set to:


In FreeBSD all installed ports/pkgs are in /usr/local so binary files are not 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 found the gs command (not in PATH) although gs is installed.

I corrected in may local server adding the file:




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.