Help adding the cron job to my server


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?


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:

How would I run it from the command line?

I think you can just run /usr/local/bin/php /srv/users/…/artisan ninja:send-invoices

Note: correct the …

I ran it and received the following:

bash: /usr/local/bin/php: No such file or directory

Try running which php

I tried that and nothing happened. Was I supposed to get something returned after running that?

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?

That did the trick! Thank you!

Great to hear, thanks for letting us know!