簡體   English   中英

嘗試訪問此WordPress網站時,為什么會出現此403 Forbidden錯誤? 為什么無法讀取.htaccess文件?

[英]Why I obtain this 403 Forbidden error when I try to access to this WordPress website? Why it can't read the .htaccess file?

我在嘗試打開此WordPress網站時遇到一些問題: http : //www.angeliniappalti.it/

如您所見,嘗試打開它會顯示此403錯誤消息:

Forbidden

You don't have permission to access /wp-admin on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2 Server at www.angeliniappalti.it Port 80

在線閱讀我發現這是一個眾所周知的問題,但是我找不到解決問題的方法。

因此,查看Apache錯誤日志,我會看到以下錯誤消息:

[Mon Feb 09 01:27:18 2015] [crit] [client 157.55.39.155] (13)Permission denied: /home/ang12457/domains/angeliniappalti.it/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Feb 09 01:27:18 2015] [crit] [client 157.55.39.155] (13)Permission denied: /home/ang12457/domains/angeliniappalti.it/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

因此,似乎它無法讀取.htaccess文件,但其權限設置為777,因此從理論上講該文件應可讀。

這是我的.htacess文件的內容:

AuthGroupFile /dev/null
AuthUserFile /home/ang12457/domains/angeliniappalti.it/.htpasswd/public_html/.htpasswd
AuthName "area riservata"

.htaccess文件包含在public_html目錄(也包含WordPress目錄)中,並且具有700的許可權。

可能是什么問題呢? 我缺少什么? 我該如何解決這個問題?

TNX

由我自己解決,我只是將public_html目錄的權限從700更改為750 ,所以它可以工作:-)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM