403尝试访问Phpmyadmin时

时间:2017-02-16 03:16:01

标签: php mysql .htaccess phpmyadmin centos

当我尝试访问我的Phpmyadmin时,我收到错误403.我的用户名/密码是正确的。我将php更新为5.6后开始收到此错误。

我的ssl_error_log(我的IP 177)

 [Tue Feb 14 12:38:19 2017] [error] [client 177.80.57.117] client denied by server configuration: /usr/share/phpMyAdmin

我的.htaccess(/ usr / share / phpmyadmin)

 AuthType Basic
 AuthName "Logue-se"
 AuthUserFile /etc/httpd/pma_pass
 Require valid-user

我的phpmyadmin.conf

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8
   AllowOverride All
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 177.80.57.117
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 177.80.57.117
     Allow from ::1
   </IfModule>
</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 177.80.57.117
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 177.80.57.117
     Allow from ::1
   </IfModule>
</Directory>

# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/lib/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/frames/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

0 个答案:

没有答案
相关问题