title: localhost/xampp/ or http://localhost/index.php can't be accessed
body: <p>I am learning server and sql. So I need to install xampp. But unfortunately my localhost/index.php  and localhost/xampp not working. I read many questions here stackoverflow but none solved my problem. 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/php7ts.dll"
  LoadFile "C:/xampp/php/libpq.dll"
  LoadModule php7_module "C:/xampp/php/php7apache2_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 php7_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 php7_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 /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 local
      ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
     &lt;/Directory&gt;
  
  Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
  &lt;Directory "C:/xampp/phpMyAdmin"&gt;
      AllowOverride AuthConfig
      Require local
      ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  &lt;/Directory&gt;
  
  Alias /webalizer "C:/xampp/webalizer/"[enter image description here][1]
  &lt;Directory "C:/xampp/webalizer"&gt;
      &lt;IfModule php7_module&gt;
          &lt;Files "webalizer.php"&gt;
              php_admin_flag safe_mode off
          &lt;/Files&gt;
      &lt;/IfModule&gt;
      AllowOverride AuthConfig
      Require local
      ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  &lt;/Directory&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>This is what I got when I tried to access localhost/xampp/ and           localhost/index.php</p>
  
  <p><a href="https://i.stack.imgur.com/n8atw.png" rel="nofollow noreferrer">The image is here:</a></p>
  
  <p>Please suggest solution:)</p>