Laravel cronjob in server won’t run

Solved

Apparently I had to get my php from other place /usr/local/lsws/lsphp74/bin/php rather than /usr/bin/php

/usr/local/lsws/lsphp74/bin/php /home/example.com/public_html/process.example.com && /usr/local/lsws/lsphp74/bin/php /home/example.com/public_html/process.example.com/artisan schedule:run >> /dev/null 2>&1

To simplify command above and make it easy to read here is it’s structure:

PHP LARAVEL_APP && PHP ARTISAN COMMAND >> /dev/null 2>&1

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top