title: phpmyadmin - Forbidden - You don't have permission to access /phpmyadmin/ on this server
body: <p>I'm aware this has been asked many times before but all of the answers seem the same and none of them work for me.</p>
  
  <p>I want to access the phpmyadmin GUI from something other than the localhost. </p>
  
  <p>I'm getting the error "Forbidden - You don't have permission to access /phpmyadmin/ on this server." in the browser.</p>
  
  <p>I'm using CentOS7, Apache 2.4.6 and phpMyAdmin-4.4.15.10-1.el7.</p>
  
  <p>I've tried this:</p>
  
  <pre><code>&lt;Directory /usr/share/phpMyAdmin/&gt;
    Order Allow,deny
    Allow from all
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share/phpMyAdmin/setup/&gt;
    Order Allow,deny
    Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Most people seem to suggest I can just do:</p>
  
  <pre><code>&lt;IfModule mod_authz_core.c&gt;
      # Apache 2.4
      &lt;RequireAny&gt;
          Require all granted
      &lt;/RequireAny&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>&lt;IfModule mod_authz_core.c&gt;
      # Apache 2.4
      &lt;RequireAny&gt;
          Require ip 192.168.1.6
      &lt;/RequireAny&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But none of that works.</p>
  
  <p>This is the current state:</p>
  
  <pre><code>&lt;Directory /usr/share/phpMyAdmin/&gt;
     AddDefaultCharset UTF-8
  
     &lt;IfModule mod_authz_core.c&gt;
       # Apache 2.4
       &lt;RequireAny&gt;
         Require ip 192.168.1.6
         Require ip ::1
       &lt;/RequireAny&gt;
     &lt;/IfModule&gt;
     &lt;IfModule !mod_authz_core.c&gt;
       # Apache 2.2
       Order Allow,Deny
       Allow from All
       Allow from 127.0.0.1
       Allow from ::1
     &lt;/IfModule&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Still getting:</p>
  
  <blockquote>
    <p>Forbidden</p>
    
    <p>You don't have permission to access /phpmyadmin/ on this server.</p>
  </blockquote>
  
  <p>EDIT-</p>
  
  <p>Just as additional information, I have disabled SELinux and made sure permissions on /usr/share/phpMyAdmin are correct.</p>
  
  <p>EDIT AGAIN-</p>
  
  <p>I've now tried this...</p>
  
  <pre><code>&lt;Directory /usr/share/phpMyAdmin/&gt;
          Require all granted
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share/phpMyAdmin/setup/&gt;
          Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Which is surely as basic as you can get and yet I still get the error?</p>