安裝phpMyAdmin出現403解決辦法。全部是yum安裝
阿新 • • 發佈:2019-02-16
http://www.lupaworld.com/portal.php?mod=view&aid=248940&page=all
- .....
- <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
- # Apache 2.2
- OrderDeny,Allow
- DenyfromAll
- Allowfrom127.0.0.1
- Allowfrom::1
- </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
- # Apache 2.2
- OrderDeny,Allow
- DenyfromAll
- Allowfrom127.0.0.1
- Allowfrom::1
- </IfModule>
- </Directory>
- .....
最後,重啟httpd使改動生效。