title: You don't have permission to access /phpMyAdmin on this server in CentOS7 VPS server
body: <p>I have installed <code>Apache</code>, <code>PHP</code>, <code>MariaDB</code> and <code>PHPMyAdmin</code> in my <code>VPS CentOS7</code>. But when I access PHPMyAdmin on </p>
  
  <pre><code>http://my-server-ip-here/phpMyAdmin 
  </code></pre>
  
  <p>It's giving this error:</p>
  
  <pre><code>Forbidden
  
  You don't have permission to access /phpMyAdmin on this server.
  </code></pre>
  
  <p>My configuration, <code>/etc/httpd/conf.d/phpMyAdmin.conf</code></p>
  
  <pre><code># phpMyAdmin - Web based MySQL browser written in php
  #
  # Allows only localhost by default
  #
  # But allowing phpMyAdmin to anyone other than localhost should be considered
  # dangerous unless properly secured by SSL
  
  Alias /phpMyAdmin /usr/share/phpMyAdmin
  Alias /phpmyadmin /usr/share/phpMyAdmin
  
  &lt;Directory /usr/share/phpMyAdmin/&gt;
     AddDefaultCharset UTF-8
  
     &lt;IfModule mod_authz_core.c&gt;
       # Apache 2.4
       &lt;RequireAny&gt;
         Require ip my-server-ip-here
         Require ip ::1
       &lt;/RequireAny&gt;
     &lt;/IfModule&gt;
     &lt;IfModule !mod_authz_core.c&gt;
       # Apache 2.2
       Order Deny,Allow
      # Deny from All
       Allow from my-server-ip-here
       Allow from ::1
     &lt;/IfModule&gt;
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share/phpMyAdmin/setup/&gt;
     &lt;IfModule mod_authz_core.c&gt;
       # Apache 2.4
       &lt;RequireAny&gt;
         Require ip my-server-ip-here
         Require ip ::1
       &lt;/RequireAny&gt;
     &lt;/IfModule&gt;
     &lt;IfModule !mod_authz_core.c&gt;
       # Apache 2.2
       Order Deny,Allow
       #Deny from All
       Allow from my-server-ip-here
       Allow from ::1
     &lt;/IfModule&gt;
  &lt;/Directory&gt;
  
  # These directories do not require access over HTTP - taken from the original
  # phpMyAdmin upstream tarball
  #
  &lt;Directory /usr/share/phpMyAdmin/libraries/&gt;
      Order Deny,Allow
      #Deny from All
      Allow from None
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share/phpMyAdmin/setup/lib/&gt;
      Order Deny,Allow
      #Deny from All
      Allow from None
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share/phpMyAdmin/setup/frames/&gt;
      Order Deny,Allow
      #Deny from All
      Allow from None
  &lt;/Directory&gt;
  
  # This configuration prevents mod_security at phpMyAdmin directories from
  # filtering SQL etc.  This may break your mod_security implementation.
  #
  #&lt;IfModule mod_security.c&gt;
  #    &lt;Directory /usr/share/phpMyAdmin/&gt;
  #        SecRuleInheritance Off
  #    &lt;/Directory&gt;
  #&lt;/IfModule&gt;
  </code></pre>