Anyone running latest WHM/Cpanel that migrated to EasyApache 4 discover php-cli is missing after the migration? Anyone know the solution/workaround to this?
I recently updated to cPanel / WHM version 58 and I'm having the same problem. I have several servers running EasyApache 3 and php-cli is available during the build process. I can't find php-cli anywhere in EasyApache 4.
Update: this link helped me resolve the issue I was having, hopefully it may be helpful to others: The php_cli program - EasyApache 4 - cPanel Documentation
Here's the issue. EA4 sets up 3 versions of PHP on the server. Not sure why but I know in the past the PHP version WHM/Cpanel runs under has been an earlier version than what the accounts run under for the purpose of stability/compatibility with WHM/CPanel. EA4 by default sets up 3 versions of PHP (all 5.x versions with the latest being 5.6). For some reason into no longer defaults the PHP the accounts run under to the latest installed version. This means that when you run the php command from the command line, it isn't sure which version you want to run so you need to specify. There is no php-cli command anymore. You just use php command but with full path to the version like this:
I suppose you could symlink php to the version you want so you don't have to enter the path every time. Haven't tried it though.
Either Cpanel is going to need to address this, or Sugar is going to need to update it's documentation as new users may go nuts trying to implement the cron.php event based on the docs since php-cli is gone and you can't run php from the command line without full path.
Retrieving data ...