1. 程式人生 > >安裝phpMyAdmin出現403解決辦法。全部是yum安裝

安裝phpMyAdmin出現403解決辦法。全部是yum安裝

http://www.lupaworld.com/portal.php?mod=view&aid=248940&page=all

  1. .....
  2. <Directory/usr/share/phpMyAdmin/>
  3. AddDefaultCharset UTF-8
  4. <IfModule mod_authz_core.c>
  5. # Apache 2.4
  6. <RequireAny>
  7. #Require ip 127.0.0.1
  8. #Require ip ::1
  9. Require all granted
  10. </RequireAny>
  11. </IfModule>
  12. <IfModule!mod_authz_core
    .c>
  13. # Apache 2.2
  14. OrderDeny,Allow
  15. DenyfromAll
  16. Allowfrom127.0.0.1
  17. Allowfrom::1
  18. </IfModule>
  19. </Directory>
  20. <Directory/usr/share/phpMyAdmin/setup/>
  21. <IfModule mod_authz_core.c>
  22. # Apache 2.4
  23. <RequireAny>
  24. #Require ip 127.0.0.1
  25. #Require ip ::1
  26. Require all granted
  27. </RequireAny>
  28. </IfModule>
  29. <IfModule
    !mod_authz_core.c>
  30. # Apache 2.2
  31. OrderDeny,Allow
  32. DenyfromAll
  33. Allowfrom127.0.0.1
  34. Allowfrom::1
  35. </IfModule>
  36. </Directory>
  37. .....

  最後,重啟httpd使改動生效。