Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2021 23:17:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255338] sysutils/monitorix: Perl path
Message-ID:  <bug-255338-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255338

            Bug ID: 255338
           Summary: sysutils/monitorix: Perl path
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: crees@FreeBSD.org
          Reporter: freebsd@ohreally.nl
          Assignee: crees@FreeBSD.org
             Flags: maintainer-feedback?(crees@FreeBSD.org)

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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255338-7788>