Skip to content

Installation on FreeBSD host may require adjusting $PATH to include /usr/local/bin for redmine_more_previews to find helper apps #111

@batrachian

Description

@batrachian

Installation note for redmine_more_previews when running on a FreeBSD host

On a host running FreeBSD software installed in the ports environment (i.e. installed using pkg(8) or via the ports(7) tree) are given an environment in which PATH doesn't include /usr/local/bin. In a typical installation this results in redmine_more_previews being unable to find helper apps - soffice, gs, pandoc, etc.

A solution to this is to use passenger's passenger_env_var option to set the path used within the passenger app environment. e.g.:

passenger_env_var PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin;

Another solution - tested with www/nginx - is to set the path used within the webserver environment, e.g. with nginx_env in /etc/rc.conf:

nginx_env="PATH=\$PATH:/usr/local/bin"

which may help if the passenger_env_var solution doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions