dannyliao 2016-9-16 14:13
在CentOS7 使用 yum 安裝 phpMyAdmin 允許任意IP存取
# yum -y install phpMyAdmin<br># vim /etc/httpd/conf.d/phpMyAdmin.conf<br><br>透過 vi 指令修改,將底下預設的設定檔 Mark 起來<br>[quote] <br>#<Directory /usr/share/phpMyAdmin/><br># <IfModule mod_authz_core.c><br># # Apache 2.4<br># <RequireAny><br># Require ip 127.0.0.1<br># Require ip ::1<br># </RequireAny><br># </IfModule><br># <IfModule !mod_authz_core.c><br># # Apache 2.2<br># Order Deny,Allow<br># Deny from All<br># Allow from 127.0.0.1<br># Allow from ::1<br># </IfModule><br>#</Directory><br>[/quote]<br><br>修改成<br>[quote]<br><Directory /usr/share/phpMyAdmin/><br> Options none<br> AllowOverride Limit<br> Require all granted<br></Directory><br>[/quote]<br><br>重新啟動伺服器<br>systemctl restart httpd.service<br><br>這樣就不受IP存取的限制了~