doubo1711 2017-05-17 01:54
浏览 47
已采纳

在Plesk中运行Laravel 5.1任务计划程序

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

enter image description here

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

Error is for this line artisan file

 $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

  • 写回答

2条回答 默认 最新

  • duanjie3267 2017-05-17 05:22
    关注

    Instead of 'php' try to use command '/opt/plesk/php/5.6/bin/php'

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 matlab中使用gurobi时报错
  • ¥15 WPF 大屏看板表格背景图片设置
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂