[Bug 238999] www/apache24: Add /usr/local/bin (and maybe /usr/local/sbin) to apache24 env PATH

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 238999] www/apache24: Add /usr/local/bin (and maybe /usr/local/sbin) to apache24 env PATH

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238999

            Bug ID: 238999
           Summary: www/apache24: Add /usr/local/bin (and maybe
                    /usr/local/sbin) to apache24 env PATH
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: easy
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: [hidden email]
          Reporter: [hidden email]
             Flags: maintainer-feedback?([hidden email])
          Assignee: [hidden email]

Hello,

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

PATH=/bin:/usr/bin:/sbin:/usr/sbin

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:

/usr/local/etc/apache24/envvars.d/path.env

With:

PATH="/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.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-apache
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

maintainer-feedback requested: [Bug 238999] www/apache24: Add /usr/local/bin (and maybe /usr/local/sbin) to apache24 env PATH

bugzilla-noreply
Bugzilla Automation <[hidden email]> has asked freebsd-apache mailing
list <[hidden email]> 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=238999



--- Description ---
Hello,

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

PATH=/bin:/usr/bin:/sbin:/usr/sbin

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:

/usr/local/etc/apache24/envvars.d/path.env

With:

PATH="/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.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-apache
To unsubscribe, send any mail to "[hidden email]"