大家好我现在收到这个错误超过7个小时但我还是知道运气“你没有权限在这个服务器上访问/ phpmyadmin”。 我按照互联网上的说明和示例,但我仍然得到相同的错误。我的文件路径是“etc / httpd / conf.d / phpMyAdmin”
<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
#Require ip 127.0.0.1
#Require ip ::1
Require ip 52.28.232.215
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
# Order Allow,Deny
Deny from All
Allow from All
# Allow from 127.0.0.1
#Allow from ::1
Allow from 52.28.232.215
</IfModule>
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
# Require ip 127.0.0.1
Require ip 52.28.232.215
# Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
# Order Allow,Deny
#Deny from All
#Allow from 127.0.0.1
# Allow from ::1
Allow from 52.28.232.215
Allow from All
</IfModule>
</Directory>
答案 0 :(得分:0)
我终于解决了这个问题
添加了
Required all granted
在第一个
# Apache 2.4
我不知道我的apache是2.4+ 感谢