如果目录显示为可写,为什么目录不能被Web进程写入?

时间:2019-07-16 23:53:54

标签: apache yii yii2 humhub

我在安装HubHub时遇到问题。我不断收到此错误

  

无效的配置– yii \ base \ InvalidConfigException
  该目录不可通过Web进程写入:   / var / www / html / humhub / assets

尽管该文件夹可由apache写入:

$ ls -la /var/www/html/humhub/assets

total 0

drwxrwsrwx. 2 francesco apache 6 Jun 26 14:13 .

drwxrwsrwx. 7 francesco apache 197 Jun 26 14:13 ..

我的设置:

  • 服务器:AWS上的Red Hat Enterprise Linux 8.0版(Ootpa)
  • HumHub:1.3.14(和Yii Framework / 2.0.15)
  • Web服务器:Apache / 2.4.37(Red Hat Enterprise Linux)

我尝试过的:

  • 我通过遵循this answerthis similar answer
  • 来确保该文件夹可写。
  • 我什至尝试将整个文件夹humhub设置为可写入chmod -R 777 humhub
  • 我确保满足所有PHP要求。

是否有可能实际上apache不会运行Web进程并显示此结果?

> ps -ef | grep httpd | grep -v grep
root     20227     1  0 05:30 ?        00:00:02 /usr/sbin/httpd -DFOREGROUND
apache   20229 20227  0 05:30 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   20230 20227  0 05:30 ?        00:00:12 /usr/sbin/httpd -DFOREGROUND
apache   20231 20227  0 05:30 ?        00:00:12 /usr/sbin/httpd -DFOREGROUND
apache   20232 20227  0 05:30 ?        00:00:11 /usr/sbin/httpd -DFOREGROUND
apache   20449 20227  0 05:31 ?        00:00:13 /usr/sbin/httpd -DFOREGROUND

0 个答案:

没有答案
相关问题