我在 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 但問題仍然存在。
任何解決方案?
uj5u.com熱心網友回復:
cPanel 帳戶中的檔案的權限應為644,理想情況下為640。755是檔案夾而不是檔案的權限(除非您需要一個檔案具有執行權限),而 .htaccess 檔案則不然。
通常,在/home/cpaneluser 中的cPanel 服務器上:
public_html should have permissions as 750 and ownership as cpaneluser:nobody
public_html檔案夾中的所有檔案都應該擁有所有權cpaneluser:cpaneluser和權限,檔案夾為750,檔案為64 0
所以你應該檢查public_html權限和那些.htaccess檔案所在的檔案夾。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/317883.html
標籤:php WordPress的 阿帕奇 面板
