安装和配置文件后,您无权访问此服务器上的/phpmyadmin. [英] You don't have permission to access /phpmyadmin on this server.Ec2 after installing and configuring the files

查看:97
本文介绍了安装和配置文件后,您无权访问此服务器上的/phpmyadmin.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我现在收到此错误超过7个小时,但是我仍然很幸运,您无权访问此服务器上的/phpmyadmin". 我遵循了互联网上的说明和示例,但仍然遇到相同的错误.这是我的文件路径"etc/httpd/conf.d/phpMyAdmin"

Hi everyone i am getting this error now is more than 7 hours but i still have know luck "You don't have permission to access /phpmyadmin on this server". I followed the instructions and examples on the internet but i still get the same error.here is my how my file path "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+ 谢谢

I was not aware that my apache is 2.4+ Thanks

这篇关于安装和配置文件后,您无权访问此服务器上的/phpmyadmin.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆