This wp-cli command executes fine from the command line, but not when run as a cron job.
/var/sites/d/mydomain/wp-cli --user=admin --url=https://mydomain/wordpress --path=/var/sites/d/mydomain/public_html/wordpress/ civicrm api job.execute auth=0
Any idea where I could start to diagnose this? I have checked the Civi logs in ConfigAndLog, nothing there. I have set php.ini as below
log_errors = On log_errors_max_len = 1024 error_log = /var/sites/d/mydomain/logs/php_error.log
But nothing in that log either.