'Running Laravel 5.1 Task Scheduler in Plesk
I have uploaded my laravel 5.1 project on Plesk server. I wanted to run task scheduler in Plesk , i have seen many answers on internet to do so but nothing seems to be working for me.
My Plesk Task Scheduling Interface
I am running schedule:run command like this
php /var/www/vhosts/websitename.com/httpdocs/artisan schedule:run 1
and in cron style i am adding this
* * * * *
so that my cron runs every minute
When I click on run now button I get error
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
I search on internet and i found many solutions saying that it's PHP version issue , it will through error if PHP version is less or equal to PHP v5.4, but my current php version is 5.6.30
I am unable to figure it out what's the exact problem . Help is appreciated
Note: I haven't added any code yet in Kernel.php file
Solution 1:[1]
This way of using command works for me fine
/opt/plesk/php/5.6/bin/php /var/www/vhosts/websitename.com/httpdocs/artisan schedule:run
This is working properly in Plesk
Solution 2:[2]
Try
/opt/plesk/php/7.3.14/bin/php httpdocs/artisan
Solution 3:[3]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Vishal Shetty |
| Solution 2 | Islam È?ø |
| Solution 3 | Mike Aron |



