Skip to content
Advertisement

laravel 5.5 schedule:run cron job not working in cpanel

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.

Advertisement

Answer

Try like this

/usr/local/bin/php /home/schoolco/prototype/artisan schedule:run > /dev/null 2>&1

And check are you calling right php executable in your terminal with:

$ which php

Maybe it is not /usr/local/bin/php , maybe /usr/bin/php

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement