Updated Laravel 5.3 to Laravel 5.4 using this container https://github.com/shin1x1/docker-laravel-on-php7-apache
PHP changed from 5.X to 7. In the crown there was such a task
* * * * * php /var/www/laravel/artisan schedule:run >>/dev/null 2>&1 On the previous build, everything worked fine, but now it has stopped
The command itself, if run from SSH
php /var/www/laravel/artisan schedule:run >>/dev/null 2>&1 works fine.
If you redirect error output from the crown to a file, for example
* * * * * php /var/www/laravel/artisan schedule:run > /etc/log/faillog So in the file we get this
/bin/sh: 1: php: not found The question is why does cron not see PHP and where to dig?