我已经在google服务器上上传了Yii2高级站点。
我用Centos 7创建了实例
获取错误:目录不能被Web /web/assets写
我还设置了权限777,但仍然无法工作
如何解决错误。
发布于 2017-03-10 07:48:57
解决问题的步骤- 参考链接
- You will see the below code
此文件控制系统上的SELinux状态。
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted发布于 2018-07-23 11:57:35
不确定是否禁用SELINUX是答案,因为我已经阅读了太多的警告。
在某个地方找到了以下解决方案(我对原海报表示歉意)。一旦SSH进入实例,只需执行以下命令:
sudo chcon -v --type=httpd_sys_script_rw_t frontend/web/assetshttps://stackoverflow.com/questions/42711277
复制相似问题