Using WordPress 5.4 and CiviCRM Version 5.18.4. Hosting with InmotionDirect, managing via Cpanel.
Trying to follow the instructions to set up our cron job. I got the command line to work, finally, as: php public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -s [site] -u [user] -p [password] -e Job -a execute
It worked, and I thought I was done. Plugged it into the Crom job list in Cpanel and sat back.
Error via email: "cli.php can only be run from command line."
Well, nobody mentioned that in the instructions. Is that a universal rule, or is just my hosting service being fussy?
Based on an answer here (Setting up cron jobs on cPanel) I tried putting the command line in a file and having the cron job command be just sh thatfile. Same error.
Is there a workaround? Or do I have to manually install yet another program like wp-cli just to run my jobs?