在cpanel中获得关于访问权限的错误



我在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,但问题仍然存在。

有答案吗?

cPanel帐户中的文件应该具有644权限 640。755年是一个文件夹的权限,而不是文件(除非你需要一个文件有执行权限),这不是。htaccess文件的情况。

一般来说,在cPanel服务器上/home/cpaneluser:

public_html should have permissions as 750 and ownership as cpaneluser:nobody

public_html中的所有文件文件夹的所有权为cpaneluser:cpaneluser,权限为75064文件

为0所以你应该检查一下public_html.htaccess目录文件也驻留。

相关内容