dongpo3957 2017-03-22 00:06 采纳率: 0%
浏览 87

在Yii2中,如何使用init命令在不同的目录中创建index.php?

I am using the advanced application on shared hosting. I have the following folder structure.Shared hosting folder structure To keep things 'clean' I put all the Yii2 related files in their own directory on the server (in this case under yii2-advanced-dashboard) so it is obvious what is what on the shared hosting and in case I need to have other separate applications on the same hosting. I have followed the tutorial about Yii2 advanced on shared hosting.

My Question is, what do I need to do so that I can run the ./init command and have Yii2 create the index.php file under public_html/dashboard? I feel like I should be able to probably configure the behavior using perhaps createSymlink under environments/index.php but there is not a lot of information out there on this. Hope it all makes sense. Thanks!!

  • 写回答

1条回答 默认 最新

  • dsrbb20862 2017-03-22 05:15
    关注

    You must connect to the server and write this command there. For example, there is a ssh protocol for this. Your terminal in the ide has nothing to do with it.

    评论

报告相同问题?

悬赏问题

  • ¥15 链接问题 C++LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接