I’m have a laravel5.5 project up on shared hosting and trying to run cron job to execute the command “schedule:run” but it just won’t execute I think I’m writing the command wrong:
/usr/local/bin/php home/schoolco/prototype/artisan schedule:run >> /dev/null 2>&1
where prototype in the name of my laravel project.
the command works in this directory using ssh.
please if you have any observation or thought share it.
3
Answers
Try like this
And check are you calling right php executable in your terminal with:
Maybe it is not /usr/local/bin/php , maybe /usr/bin/php
I solved the issue by specifying the php version in the command line:
If your Project is in Root Directory
If your Project in a folder within Public_Html then use below
Hope it will work for you. Thanks