I'm testing CiviCRM 4.7 in a WordPress 4.4.2 installation. I'm running this on a local server with Mac OSX 10.11.2 using MAMP Pro.
I'm trying to configure cron using the wp-cli method. I've installed, renamed and moved wp-cli and running wp --info
in /Applications/MAMP/bin gives
PHP binary: /usr/bin/php
PHP version: 5.5.30
php.ini used:
WP-CLI root dir: phar://wp-cli.phar
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 0.22.0
Phils-MacBook-Air:bin phillip$
wp help
shows the WordPress commands
I'm now trying to implement
/path/to/wp --user=<cron> --url=<http://example.com> --path=</path/to/wp> civicrm api job.execute auth=0
In my case I'm trying
/users/phillip/Sites/thetestsite.dev --user=<philnicholl> --url=<http://thetestsite.dev:8888> --path=</users/phillip/Sites/thetestsite.dev> civicrm api job.execute auth=0
but I get
-bash: philnicholl: No such file or directory
(philnicholl is my WordPress administrator username)
I know I'm missing something obvious.
I'm have experience with WordPress and Mamp Pro but am new to both CLI and CIVICRM. Any help would be much appreciated.
Thank you.
/users/phillip/Sites/thetestsite.dev --user=philnicholl --url=http://thetestsite.dev:8888 --path=/users/phillip/Sites/thetestsite.dev civicrm api job.execute auth=0
I now get-bash: /Users/phillip/Sites/thetestsite.dev: is a directory
I'm trying to follow these instructions: [wiki.civicrm.org/confluence/display/CRMDOC/… Does the/path/to/wp
in the instructions refer to the path to the root folder of the local site or to wp-cli.phar renamed as wp now in /usr/bin/ ?