Creating CiviMail cron job in CPanel
What I did to fix:


My php path was wrong. Should have been:


/usr/local/bin/php -q /home/acct123/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -j -s mydomain.org -u user -p password -e Job -a process_mailing


Then I created a new wordpress role using a role plugin, "civimailrole" with the only privilege "Access CiviMail".
Then created new wordpress user "civimailusr" and assigned only the role "civimailrole".
Used the new user and password in the command for CPanel cron job editor.
Sent test mailing to myself, worked.


I would appreciate any comments on any security issues for this setup.