title: Apache: The requested URL / was not found on this server. Apache
body: <p>I've installed Apache 2.2 server and PHP 5.3 on Windows XP SP3. After the initial install, Apache loaded the test page, i.e.,</p>
  
  <p><strong>http:/localhost</strong> (C:/Program Files/Apache2.2/htdocs/index.html) showed "It works!".</p>
  
  <p>After configuring Apache and installing PHP, trying to load <strong>http:/localhost/phptest.php</strong> i.e. (C:/testsite/htdocs/phptest.php).</p>
  
  <p>But this throws an error:</p>
  
  <blockquote>
    <p>Not Found. The requested URL /phptest.php was not found on this server.</p>
  </blockquote>
  
  <p>I also get the same error now loading</p>
  
  <pre><code>http://localhost
  </code></pre>
  
  <p><strong>httpd.conf edits:</strong></p>
  
  <pre><code>ServerName localhost:80
  
  DocumentRoot "C:/testsite/htdocs"
  
  &lt;Directory "C:/testsite/htdocs"&gt;
      Options FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
  &lt;/Directory&gt;
  
  &lt;IfModule dir_module&gt;
      DirectoryIndex index.html index.php
  &lt;/IfModule&gt;
  
  LoadModule php5_module "c:/testsite/php/php5apache2_2.dll"
  AddType application/x-httpd-php .php
  AddHandler application/x-httpd-php .php
  PHPIniDir "C:/testsite/php"
  </code></pre>
  
  <p>File <code>php.ini</code> edits:</p>
  
  <pre><code>include_path = ".;C:\testsite\php\includes"
  extension_dir = "C:/testsite/php/ext/"
  </code></pre>
  
  <p>System path:</p>
  
  <p>The PHP directory was added to the Windows path, e.g.</p>
  
  <pre><code>PATH=C:\Windows\System32;C:\many_dir;C:\testsite\php
  </code></pre>
  
  <p>The only errors in the Apache error.log are:</p>
  
  <blockquote>
    <p>Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2   /docs/dummy-host.localhost] does not exist<br>
        Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host2.localhost] does not exist<br>
        Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host.localhost] does not exist<br>
        Warning: DocumentRoot [C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host2.localhost] does not exist</p>
  </blockquote>
  
  <p>The Apache service restarts successfully and is running. I can't find anything amiss. Can anyone spot any stupid errors?</p>