我是一个菜鸟,在 AWS 上浏览 Yii 教程。到目前为止,我已经能够启动并运行所有内容 - 包括 mysql 连接。但现在我正在使用 Gii 代码生成工具来帮助创建一些模型类。这样做时,我收到以下错误:
generating models/User.php
Unable to write the file '/var/www/html/blog/protected/models/User.php'.
done!
文档还告诉我:
Info: Because the code generator needs to save the generated code into files, it is
required that the Web process have the permission to create and modify the corresponding
files. For simplicity, we may give the Web process the write permission to the whole
/www/blog directory. Note that this is only needed on development machines when using Gii.
这对我来说很有意义,我理解 Linux 权限的基本逻辑应用于用户和组......但不适用于进程。有人可以向我指出如何授予 Gii 进程对 webroot(在我的情况下为:/var/www/html/blog/)目录的写权限的入门吗?