Index: LibreNMS/wrapper.py --- LibreNMS/wrapper.py.orig +++ LibreNMS/wrapper.py @@ -278,7 +278,7 @@ def poll_worker( os.path.dirname(os.path.dirname(os.path.realpath(__file__))), wrappers[wrapper_type]["executable"], ) - command = "/usr/bin/env php {} -h {}".format(executable, device_id) + command = "${MODPHP_BIN} {} -h {}".format(executable, device_id) if debug: command = command + " -d" exit_code, output = command_runner(