phpMyAdmin + CentOS 6.0 - Forbidden

后端 未结 4 1096
温柔的废话
温柔的废话 2021-02-12 10:29

I always get this message when I would like access my phpMyAdmin.

w3m localhost/phpmyadmin

Forbidden

You don\'t have permission to access /phpmyadmin/ on this          


        
4条回答
  •  抹茶落季
    2021-02-12 10:49

    None of the configuration above worked for me on my CentOS 7 server. After hours of searching, that's what worked for me:

    Edit file phpMyAdmin.conf

    sudo nano /etc/httpd/conf.d/phpMyAdmin.conf

    And replace this at the top:

    
       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
       
    
    

提交回复
热议问题