@Arkadii026

Почему запрещён доступ с этого компьютера к phpmyadmin?

Подскажите пожалуйста, после установки phpmyadmin на centos при попытке зайти на него с другого компа через браузер получаю сообщение.
Forbidden
You don't have permission to access /phpmyadmin/ on this server.
Версия httpd
Server version: Apache/2.4.6 (CentOS)
Server built: Jun 27 2018 13:48:59
Лог ошибок в httpd
[Wed Oct 10 10:55:20.127987 2018] [mpm_prefork:notice] [pid 2419] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Oct 10 10:55:21.208769 2018] [suexec:notice] [pid 2451] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 10 10:55:21.230472 2018] [auth_digest:notice] [pid 2451] AH01757: generating secret for digest authentication ...
[Wed Oct 10 10:55:21.231036 2018] [lbmethod_heartbeat:notice] [pid 2451] AH02282: No slotmem from mod_heartmonitor
[Wed Oct 10 10:55:21.233679 2018] [mpm_prefork:notice] [pid 2451] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Wed Oct 10 10:55:21.233726 2018] [core:notice] [pid 2451] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

конфиг phpmyadmin в httpd

# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

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


AddDefaultCharset UTF-8


# Apache 2.4

#Require ip 127.0.0.1
#Require ip ::1
Require all granted



# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1





# Apache 2.4

#Require ip 127.0.0.1
#Require ip ::1
Require all granted



# Apache 2.2
Order Deny,Allow
Deny from All
# Allow from All
# Allow from ::1
Require all granted



# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#

Order Deny,Allow
Deny from All
Allow from None



Order Deny,Allow
Deny from All
Allow from None



Order Deny,Allow
Deny from All
Allow from None


# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#
#
# SecRuleInheritance Off
#
#
Помогите пожалуйста, что только не пробовал.
  • Вопрос задан
  • 812 просмотров
Пригласить эксперта
Ответы на вопрос 3
в mysql доступ к базе по умолчанию доступен только с локалхоста
тебе нужно в конфиге mysql указать Ip, с которых к базе будет доступ
Ответ написан
keine-lust
@keine-lust
У тебя же в конфигах апача написано:

#Apache X.X

#Require ip 127.0.0.1
#Require ip ::1
Require all granted

# Apache 2.2
Order Deny,Allow
Deny from All                 # - запретить доступ со всех ip
Allow from 127.0.0.1      # - разрешить с 127.0.0.1 (это локалхост)
Allow from ::1                 # - разрешить с ::1 (это тоже локалхост)


Нужно написать:
Order Deny,Allow
Allow from All           # - доступ к phpmyadmin с любого ip
Ответ написан
Комментировать
@Arkadii026 Автор вопроса
Привел phpmyadmin.conf к вот такому виду, вроде всё разрешил что можно, но проблема осталась.
Я уже не знаю куда копать... бред какой то.
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

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

AddDefaultCharset UTF-8


# Apache 2.4

Require all granted
Require ip ::1

# Apache 2.2
Order Deny,Allow
Deny from None
Allow from All
Allow from 192.168.0.82
Allow from ::1

# Apache 2.4

Require all granted
#Require ip ::1

# Apache 2.2
Order Deny,Allow
Deny from None
Allow from All
Allow from 192.168.0.82
Allow from ::1


# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#

Order Deny,Allow
Allow from All
Deny from None
#Allow from None

Order Deny,Allow
Allow from All
Deny from None
#Allow from None

Order Deny,Allow
Allow from All
Deny from None
#Allow from None

# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#
#
# SecRuleInheritance Off
#
#
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы