【发布时间】:2021-11-30 04:34:30
【问题描述】:
我在 cpanel 中安装了 wordpress,当我在 cpanel 中的错误日志出现以下错误时。
[Mon Oct 11 16:31:35.856159 2021] [core:crit] [pid 24371] (13)Permission denied: [client 209.141.51.176:39184] AH00529: /home/root123/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/root123/public_html/' is executable
[Mon Oct 11 13:12:48.427994 2021] [core:crit] [pid 8707] (13)Permission denied: [client 138.68.249.116:52090] AH00529: /home/root123/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/root123/public_html/' is executable
我在 stackoverflow 上阅读了所有相关答案,他们说这是权限问题。我将此文件 home/root123/public_html/.htaccess 的权限更改为 775,但问题仍然存在。
有什么办法吗?
【问题讨论】:
-
如果文件的所有者与试图写入或执行它的人匹配,则您不需要弄乱 chmod。但是 775 应该允许任何人读取和执行。父文件夹的权限是什么?
-
我在 cpanel 中添加了域。 home/root123/ .htaccess 是 644,/home/root123/public_html/.htaccess 是 775,我的域名是 /home/root123/public_html/domain.com/ .htaccess 是 644
标签: php wordpress apache cpanel