diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index 90c3bf8dcd40..ffaabac3a10d 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -184,6 +184,9 @@ class SystemHealth private static function checkPhpCli() { + if(!function_exists('exec')) + return "Unable to check CLI version"; + try { exec('php -v', $foo, $exitCode);