phpMyAdmin не доступен на centos 7 после установки - PullRequest
1 голос
/ 19 сентября 2019

Я работаю:

  • Centos 7
  • PHP версия 7.3
  • Apache / 2.4.39
  • mysqlnd 5.0.12
  • phpMyAdmin-4.4.15.10-3.el7.noarch

после установки phpmyadmin выдает эту ошибку File not found., когда я пытаюсь посетить http://my.server.ip.address/phpmyadmin/

Я добавил следующее в httpd.conf

Include conf.d/phpMyAdmin.conf

Перед добавлением строки выше, это даст мне ошибку 404.

Я удалил phpmyadmin и переустановил, но ничего не изменилось.

Вот код conf.d / phpMyAdmin.conf:

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 127.0.0.1
       # Require ip ::1
       Require all granted
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     # Allow from 127.0.0.1
     # Allow from ::1
     Require all granted
   </IfModule>
</Directory>

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

# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc.  This may break your mod_security implementation.
#
#<IfModule mod_security.c>
#    <Directory /usr/share/phpMyAdmin/>
#        SecRuleInheritance Off
#    </Directory>
#</IfModule>
...