Hostinger

  Sat 10 / 06 / 2023

  Posted by: +923105741095

Category : Laravel

Tags : laravel , php laravel

Description

AoA how are you my query is how i set cron job on hostinger please explain in detail

how i set path i have six commands thanks 


View Code
                        i a
                
  Answered by CDL

As you are executing the commands locally, you need to run a command which "php artisan schedule:work" and your cron job process automatically. 

So in your server, you can't open this terminal every time so you need to open ssh and open project root directory path in ssh and then you need to run the below command:

~~~

php artisan schedule:work

~~~

By running this command your commands will be executed automatically.

When it will run successfully, you will see output like below.

~~~

  1. /public_html/artisan schedule:run >> /dev/null 2>&1

~~~

And after this, you can close your ssh connection. That's it.

  Comment   Share
0 Likes   0 Comments