Hello,
I created a recurring invoice that was scheduled to go out today, but nothing happened. I followed all the steps and added the cron job below using 'crontab -e.
0 8 * * * /usr/local/bin/php /srv/users/…/artisan ninja:send-invoices
0 8 * * * /usr/local/bin/php /srv/users/…/artisan ninja:send-reminders
Any idea why the cronjob didn’t run?
Thanks!
hillel
November 1, 2016, 9:59am
2
It may be helpful to run the artisan command from the command line to test it runs correctly.
There may be more info in /var/log/syslog or you can specify where to send the cron output: http://superuser.com/a/122255
How would I run it from the command line?
hillel
November 1, 2016, 10:02am
4
I think you can just run /usr/local/bin/php /srv/users/…/artisan ninja:send-invoices
I ran it and received the following:
bash: /usr/local/bin/php: No such file or directory
I tried that and nothing happened. Was I supposed to get something returned after running that?
hillel
November 1, 2016, 10:11am
9
Is it possible you don’t have PHP CLI installed.
sorry i’m a noob. I checked using “whereis php” and returned multiple versions of php with the following:
php: /usr/bin/php5.4-sp /usr/bin/php7.1-sp etc…
I then checked if PHP CLI was installed using ‘rpm -q php-cli’ and received the following:
The program ‘rpm’ is currently not installed.
Was this the correct way to check?
hillel
November 1, 2016, 10:20am
11
That did the trick! Thank you!
hillel
November 1, 2016, 6:06pm
13
Great to hear, thanks for letting us know!