title: Centos 7 phpmyadmin 403 Forbidden
body: <p>I get an permission error when i try to run localhost/phpmyadmin on Centos 7:</p>
  
  <pre><code>Forbidden
  
  You don't have permission to access /phpmyadmin on this server.
  </code></pre>
  
  <p>I have searched and did everything.</p>
  
  <p>my /etc/httpd/conf.d/phpmyadmin.conf file is:</p>
  
  <pre><code>&lt;Directory "/usr/share/phpmyadmin"&gt;
     Order Deny,Allow
  #   Deny from all
     Allow from 127.0.0.1
  &lt;/Directory&gt;
  
  Alias /phpmyadmin /usr/share/phpmyadmin
  Alias /phpMyAdmin /usr/share/phpmyadmin
  Alias /mysqladmin /usr/share/phpmyadmin
  </code></pre>
  
  <p>I also used:</p>
  
  <pre><code>Allow from all
  </code></pre>
  
  <p>My /usr/share/phpmyadmin/config.inc.php is:</p>
  
  <pre><code>&lt;?php
  /* vim: set expandtab sw=4 ts=4 sts=4: */
  /**
   * phpMyAdmin sample configuration, you can use it as base for
   * manual configuration. For easier setup you can use scripts/setup.php
   *
   * All directives are explained in Documentation.html and on phpMyAdmin
   * wiki &lt;http://wiki.phpmyadmin.net&gt;.
   *
   * @version $Id$
   */
  
  /*
   * This is needed for cookie based authentication to encrypt password in
   * cookie
   */
  $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
  
  /*
   * Servers configuration
   */
  $i = 0;
  
  /*
   * First server
   */
  $i++;
  /* Authentication type */
  $cfg['Servers'][$i]['auth_type'] = 'http';
  /* Server parameters */
  $cfg['Servers'][$i]['host'] = 'localhost';
  $cfg['Servers'][$i]['connect_type'] = 'tcp';
  $cfg['Servers'][$i]['compress'] = false;
  /* Select mysqli if your server has it */
  $cfg['Servers'][$i]['extension'] = 'mysql';
  /* User for advanced features */
  // $cfg['Servers'][$i]['controluser'] = 'pma';
  // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  /* Advanced phpMyAdmin features */
  // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
  // $cfg['Servers'][$i]['relation'] = 'pma_relation';
  // $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
  // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
  // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
  // $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
  // $cfg['Servers'][$i]['history'] = 'pma_history';
  // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
  
  /*
   * End of servers configuration
   */
  
  /*
   * Directories for saving/loading files from server
   */
  $cfg['UploadDir'] = '';
  $cfg['SaveDir'] = '';
  
  ?&gt;
  </code></pre>
  
  <p>I also changed permissions to /var/www/ "755" and disabled SElinux.</p>
  
  <p>Another thing i tried is use this at the beginning:</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 127.0.0.1
         #Require ip ::1
         Require all granted
       &lt;/RequireAny&gt;
     &lt;/IfModule&gt;
     &lt;IfModule !mod_authz_core.c&gt;
       # Apache 2.2
       Order Deny,Allow
       Deny from All
       Allow from 127.0.0.1
       Allow from ::1
     &lt;/IfModule&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Every change i made i restarted also apache "sudo systemctl restart httpd.service"
  I tried everything but with no luck.I still get the error.Any ideas?
  Thank you!</p>