I've tried different ways to setup cron jobs.
When using that cron job, the file is not able to read the parameters (like key, etc.)
/usr/bin/wget -O - -q -t 1 http://www.site.org/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=XXXX&pass=XXXX&key=XXXXX
The e-mail I received says: ERROR: You need to send a valid key to execute this file.
When using those cron jobs, they are not running:
/usr/bin/wget -O - -q -t 1 'http://www.xxxx.org/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=XXXX&pass=XXXX&key=XXXXX'
/usr/bin/wget -O - -q -t 1 "http://www.xxxxx.org/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=XXXX&pass=XXXX&key=XXXXX"
When working with php-cli:
php /home2/xxx/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -s xxxxx.org -u XXXX -p XXXXX -e Job -a execute
The PHP error log says:
PHP Fatal error: cli.php can only be run from command line. in /home2/xxxxx/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.class.php on line 91
When submitting the link directly in the browser, it works well.
PHP 5.4.43 CiviCRM 4.6.7 Wordpress 4.4.1