# vim /etc/httpd/conf.d/phpMyAdmin.conf
透過 vi 指令修改,將底下預設的設定檔 Mark 起來
QUOTE:
#<Directory /usr/share/phpMyAdmin/>
# <IfModule mod_authz_core.c>
# # Apache 2.4
# <RequireAny>
# Require ip 127.0.0.1
# Require ip ::1
# </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
# </IfModule>
#</Directory>
修改成
QUOTE:
<Directory /usr/share/phpMyAdmin/>
Options none
AllowOverride Limit
Require all granted
</Directory>
重新啟動伺服器
systemctl restart httpd.service
這樣就不受IP存取的限制了~