cron.php exits no CLI on PHP-FPM system

So I moved to a newer server with PHP-FPM enabled. Found out my cron.php stopped running because it thinks PHP isn’t being executed from the CLI.

It’s checking php_sapi_name() which is returning cgi-fcgi not cli-*

Haven’t really found someone in this specific situation but I would think it would be more common as people use PHP-FPM more (assuming that’s what changed the php_sapi_name) If I try to run cron.php from the browser it just generates an error 500 so I would think I can just comment out the lines of code that do the CLI check with no adverse consequences.

eh… was just a problem with how I was executing php

need to use /usr/local/bin/php