How to setup CRON on Hostinger

CRON jobs on Hostinger are setup on this panel. - Nimbus Capture

What do I need to fill in for this?



There cron command can be found here: Free Source Available Invoicing, Expenses & Time-Tracking | Invoice Ninja

It needs to be run every minute.

I’d already found that but I can’t parse out what the command I need to use is. Thanks.

This is the main command but it will need to be adjusted to work on your sever.

cd /path-to-your-project && php artisan schedule:run

Ok. I adjusted it and installed it to run every minute/hour/day/month - how do I test it now? Thanks.

You could try configuring a test recurring invoice.

I created one and told it to send now and it’s now in my invoices. Does this mean it’s working?

No, the cron is used for scheduled sends

Health Check seems to suggest CRON isn’t correct.

The cron isn’t referenced in the health check.

If the cron isn’t running you’ll see an error in the bottom left corner in the Flutter app.

I do see an error. A triangle with a ! in it.

What do you see when clicking the triangle?

If it says the cron isn’t running it means the command being used isn’t correct.

I finally got the CRON job to run but it output this error:

/home/u737112827/domains/ line 4: cd: too many arguments Could not open input file: artisan

Can you share your cron, you may be missing the &&

I had to turn it into a shell script as the CRON web interface didn’t allow special characters.


# This script will do Kermit's bidding
cd /usr/bin/php/home/u737112827/domains/
php artisan schedule:run

From the error it looks like the commands are being run together

I think it was the wrong path. At least it worked for the fresh install of IN. Any advice before I export the old and import into the fresh?

If you have SSH access you can run the command from the CLI to test it.

Yes, that’s how I resolved it. The path was the issue.

Thanks for your help!

Glad to hear it, thanks for the update!