Bug 255338 - sysutils/monitorix: Perl path
Summary: sysutils/monitorix: Perl path
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-22 23:17 UTC by Rob LA LAU
Modified: 2021-11-05 23:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob LA LAU 2021-04-22 23:17:57 UTC
Hi,

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.

Cheers,
  Rob
Comment 1 Rob LA LAU 2021-11-05 23:35:27 UTC
6 months, so I guess I'm the only one who installed monitorix.
Might as well close this bug...