douxin1163 2017-09-29 13:26
浏览 455

Yii2控制台命令不工作linux(基本应用程序)

I was trying to add Chiliec/yii2-vote widget to my project. However when I tried to run the migration nothing happens so I tried other commands and they also do nothing Commands in console literally do nothing

Any help/suggestions would be appreciated.

[kyle@kyle-pc blog]$ ./yii help
./yii: line 3: ?php: No such file or directory
./yii: line 4: /bin: Is a directory
./yii: line 5: assets: command not found
./yii: line 6: assets: command not found
./yii: line 7: assets: command not found
./yii: line 8: syntax error near unexpected token `('
./yii: line 8: ` * @copyright Copyright (c) 2008 Yii Software LLC'
  • 写回答

1条回答 默认 最新

  • duanjiong1952 2017-09-29 13:47
    关注

    I think that's something wrong with your php cli config because even the yii help doesn't have any output.

    If you run this command, does return something?

    php -r "echo 'Hello, world.';"
    

    You can try enabling the error messages in your CLI config.ini you can try other tips from here

    评论

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记