[英]phpmyadmin - Forbidden - You don't have permission to access /phpmyadmin/ on this server
[英]You don't have permission to access /phpmyadmin on this server.Ec2 after installing and configuring the files
大家好,我現在收到此錯誤超過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>
我終於解決了這個問題
添加
Required all granted
在第一個
# Apache 2.4
我不知道我的Apache是2.4+謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.