title: New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin
body: <p>I have downloaded and installed XAMPP 1.8.1 for Windows on Windows 7 Ultimate. I have set up XAMPP to run together with IIS as per these <a href="http://www.binodranabhat.com.np/blog/using-xampp-and-iis-together/" rel="noreferrer">instructions</a></p>
  
  <p>All good so far, my PHP sites run locally and everything except phpMyAdmin is available from the XAMPP menu.</p>
  
  <p>However when I try to access phpMyAdmin I get this error:</p>
  
  <blockquote>
    <p>Access forbidden!</p>
    
    <p>New XAMPP security concept:</p>
    
    <p>Access to the requested directory is only available from the local
    network.</p>
    
    <p>This setting can be configured in the file "httpd-xampp.conf".</p>
  </blockquote>
  
  <p>I've found several answers via Google and some on this site. However, so far, none of the solutions I've tried have resolved the issue.</p>
  
  <p>Here is my httpd-xampp.conf file:</p>
  
  <pre><code>#
  # XAMPP settings
  #
  
  &lt;IfModule env_module&gt;
      SetEnv MIBDIRS "C:/xampp/php/extras/mibs"
      SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"
      SetEnv OPENSSL_CONF "C:/xampp/apache/bin/openssl.cnf"
      SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"
      SetEnv PHPRC "\\xampp\\php"
      SetEnv TMP "\\xampp\\tmp"
  &lt;/IfModule&gt;
  
  #
  # PHP-Module setup
  #
  LoadFile "C:/xampp/php/php5ts.dll"
  LoadModule php5_module "C:/xampp/php/php5apache2_4.dll"
  
  &lt;FilesMatch "\.php$"&gt;
      SetHandler application/x-httpd-php
  &lt;/FilesMatch&gt;
  &lt;FilesMatch "\.phps$"&gt;
      SetHandler application/x-httpd-php-source
  &lt;/FilesMatch&gt;
  
  #
  # PHP-CGI setup
  #
  #&lt;FilesMatch "\.php$"&gt;
  #    SetHandler application/x-httpd-php-cgi
  #&lt;/FilesMatch&gt;
  #&lt;IfModule actions_module&gt;
  #    Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"
  #&lt;/IfModule&gt;
  
  
  &lt;IfModule php5_module&gt;
      PHPINIDir "C:/xampp/php"
  &lt;/IfModule&gt;
  
  &lt;IfModule mime_module&gt;
      AddType text/html .php .phps
  &lt;/IfModule&gt;
  
  ScriptAlias /php-cgi/ "C:/xampp/php/"
  &lt;Directory "C:/xampp/php"&gt;
      AllowOverride None
      Options None
      Require all denied
      &lt;Files "php-cgi.exe"&gt;
            Require all granted
      &lt;/Files&gt;
  &lt;/Directory&gt;
  
  &lt;Directory "C:/xampp/cgi-bin"&gt;
      &lt;FilesMatch "\.php$"&gt;
          SetHandler cgi-script
      &lt;/FilesMatch&gt;
      &lt;FilesMatch "\.phps$"&gt;
          SetHandler None
      &lt;/FilesMatch&gt;
  &lt;/Directory&gt;
  
  &lt;Directory "C:/xampp/htdocs/xampp"&gt;
      &lt;IfModule php5_module&gt;
          &lt;Files "status.php"&gt;
              php_admin_flag safe_mode off
          &lt;/Files&gt;
      &lt;/IfModule&gt;
      AllowOverride AuthConfig
  &lt;/Directory&gt;
  
  &lt;IfModule alias_module&gt;
      Alias /security "C:/xampp/security/htdocs/"
      &lt;Directory "C:/xampp/security/htdocs"&gt;
          &lt;IfModule php5_module&gt;
              &lt;Files "xamppsecurity.php"&gt;
                  php_admin_flag safe_mode off
              &lt;/Files&gt;
          &lt;/IfModule&gt;
          AllowOverride AuthConfig
          Require all granted
     &lt;/Directory&gt;
  
      Alias /licenses "C:/xampp/licenses/"
      &lt;Directory "C:/xampp/licenses"&gt;
          Options +Indexes
          &lt;IfModule autoindex_color_module&gt;
              DirectoryIndexTextColor  "#000000"
              DirectoryIndexBGColor "#f8e8a0"
              DirectoryIndexLinkColor "#bb3902"
              DirectoryIndexVLinkColor "#bb3902"
              DirectoryIndexALinkColor "#bb3902"
          &lt;/IfModule&gt;
          Require all granted
     &lt;/Directory&gt;
  
      Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
      &lt;Directory "C:/xampp/phpMyAdmin"&gt;
          AllowOverride AuthConfig Limit
          Order allow,deny
          Allow from all
          Require all granted
      &lt;/Directory&gt;
  
      Alias /webalizer "C:/xampp/webalizer/"
      &lt;Directory "C:/xampp/webalizer"&gt;
          &lt;IfModule php5_module&gt;
              &lt;Files "webalizer.php"&gt;
                  php_admin_flag safe_mode off
              &lt;/Files&gt;
          &lt;/IfModule&gt;
          AllowOverride AuthConfig
          Require all granted
      &lt;/Directory&gt;
  &lt;/IfModule&gt;
  
  #
  # New XAMPP security concept
  #
  &lt;LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"&gt;
      Order deny,allow
      Allow from all
      Require all granted
  
      ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  &lt;/LocationMatch&gt;
  </code></pre>
  
  <p>Does anyone have any idea as to what I'm missing?</p>