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 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献