I am using a godaddy host. I already set the cron job command in the host php /home/site/laravel/artisan schedule:run
But the problem its returning this error for everytime it runs: [ErrorException] Invalid argument supplied for foreach()
X-Powered-By: PHP/5.5.30 Content-type: text/html
Also it runs if i use the same artisan command in the ssh
Ok. I found the answer i had to use the command with the full path to the php like this: /usr/local/bin/php /home/mysitename/laravel/artisan schedule:run
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.