You don't have permission to access phpMyAdmin on this server cent OS 7

You don't have permission to access phpMyAdmin on this server cent OS 7

After installation of apache PHP MySql (LAMP) its common issue occurs when you wish to install phpMyAdmin database GUI access on your web server so here you can get tested solution to resolve Forbidden 'You don't have permission to access phpMyAdmin on this server cent OS 7' this issue. 


just open the  phpMyAdmin configuration file on your web server 

# gedit /etc/httpd/conf.d/phpMyAdmin.conf 

<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.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
   </IfModule>
</Directory>

Just make the changes highlighted part   

# Require ip 127.0.0.1
# Require ip ::1 and

Require all granted 

After this changes # systemctl restart httpd.service

and now refresh your page 


With the above steps we are able to successfully resolve Forbidden  'You don't have permission to access phpMyAdmin on this server cent OS 7' issue. 



Previous Post
Next Post
Related Posts

0 Comments: