Bug 255338

Summary: sysutils/monitorix: Perl path
Product: Ports & Packages Reporter: Rob LA LAU <freebsd>
Component: Individual Port(s)Assignee: Chris Rees <crees>
Status: New ---    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (crees)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Rob LA LAU 2021-04-22 23:17:57 UTC

The script /usr/local/www/cgi-bin/monitorix.cgi contains the shebang line '#!/usr/bin/env perl'. However, Apache is started with a PATH of '/sbin:/bin:/usr/sbin:/usr/bin' and Perl is installed in /usr/local/bin, so env cannot find it. As a result, the CGI script cannot be executed.

Changing the shebang line to explicitly point at /usr/local/bin/perl fixes this.

There seems to be no way to change the PATH for Apache.