diff --git a/app/call_recordings/app_defaults.php b/app/call_recordings/app_defaults.php index 5ccae9831..3ebe4e64d 100644 --- a/app/call_recordings/app_defaults.php +++ b/app/call_recordings/app_defaults.php @@ -3,11 +3,13 @@ if ($domains_processed == 1) { // Prompt to Install Zip - $ffmpeg_path = shell_exec('which zip'); - if (empty($ffmpeg_path)) { - echo "Please install zip\n"; - echo "On Debian / Ubuntu Linux install zip with this command.\n"; - echo "apt install zip\n"; + if (PHP_SAPI === 'cli') { + $ffmpeg_path = shell_exec('which zip'); + if (empty($ffmpeg_path)) { + echo "Please install zip\n"; + echo "On Debian / Ubuntu Linux install zip with this command.\n"; + echo "apt install zip\n"; + } } // Load the email template