Centos 7.7 - phpMyAdmin 403 Запрещен удаленный доступ - PullRequest
0 голосов
/ 13 апреля 2020

Я пытаюсь получить доступ к phpMyAdmin удаленно и продолжаю получать ту же ошибку 403 У вас нет прав доступа к / phpmyadmin / на этом сервере. Я пробовал Разрешить все предоставлено, Требовать все предоставлено. Мой ip там. Пробовал заменить 127.0.0.1 на мой ip. Ничего не работает Есть идеи почему? У меня все уши.

У меня есть apache, mysql, phpMyAdmin установлен в настоящее время.

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8

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

<Directory /usr/share/phpMyAdmin/setup/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 31.209.140.17
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 31.209.140.17
     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>
...