我在打开这个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,因此理论上该文件应该是可读的。
这是我的.htaccess文件的内容:
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,它就可以工作:-)