title: Why does Apache2 map www.myurl.com/php to this directory?
body: <p>I've recently inherited the job of maintaining a LAMP server. I have basically zero experience with web development, so sorry if I'm missing something obvious or not giving the right information.</p>
  
  <p>If I go to <code>www.myurl.com/foo/someFile.php</code>, I get <code>someFile.php</code> located in <code>/directory/number/one/foo</code>. This is what I would expect since <code>/etc/apache2/httpd.conf</code> contains:</p>
  
  <pre><code>&lt;Directory /directory/number/one/foo&gt;
  AuthType Basic
  AuthName "Restricted Access"
  AuthUserFile /etc/apache2/passwords
  Require valid-user
  &lt;/Directory&gt;
  </code></pre>
  
  <p>However, if I go to <code>www.myurl.com/php/someFile.php</code>, then I get someFile.php located in <code>/directory/number/two/</code> (In real life <code>/directory/number/two/</code> is <code>/home/sean/sean_test/</code>, so it's not some default path). I haven't been able to find any references to <code>/directory/number/two/</code> in any of the following places:</p>
  
  <ul>
  <li>Any <code>httpd.conf</code> on the system </li>
  <li>Any <code>apache2.conf</code></li>
  <li>Any file in <code>/etc/apache2/conf.d/</code> </li>
  <li>Any <code>.htaccess</code> on the system</li>
  <li>Any <code>php.ini</code> on the system </li>
  <li>Any <code>.user.ini</code> on the system (none exist, but they are referenced by php.ini)</li>
  </ul>
  
  <p>I also haven't been able to find any symlinks from <code>php</code> to <code>/directory/number/two/</code> anywhere on the system. Why is Apache loading files from <code>/directory/number/two/</code>?</p>
  
  <p>Output of <code>/usr/sbin/apache2 -V</code>:</p>
  
  <pre><code>Server version: Apache/2.2.16 (Debian)
  Server built:   Mar  3 2013 12:09:44
  Server's Module Magic Number: 20051115:24
  Server loaded:  APR 1.4.2, APR-Util 1.3.9
  Compiled using: APR 1.4.2, APR-Util 1.3.9
  Architecture:   64-bit
  Server MPM:     Prefork
    threaded:     no
      forked:     yes (variable process count)
  Server compiled with....
   -D APACHE_MPM_DIR="server/mpm/prefork"
   -D APR_HAS_SENDFILE
   -D APR_HAS_MMAP
   -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
   -D APR_USE_SYSVSEM_SERIALIZE
   -D APR_USE_PTHREAD_SERIALIZE
   -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
   -D APR_HAS_OTHER_CHILD
   -D AP_HAVE_RELIABLE_PIPED_LOGS
   -D DYNAMIC_MODULE_LIMIT=128
   -D HTTPD_ROOT="/etc/apache2"
   -D SUEXEC_BIN="/usr/lib/apache2/suexec"
   -D DEFAULT_PIDLOG="/var/run/apache2.pid"
   -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
   -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
   -D DEFAULT_ERRORLOG="logs/error_log"
   -D AP_TYPES_CONFIG_FILE="mime.types"
   -D SERVER_CONFIG_FILE="apache2.conf"
  </code></pre>
  
  <p>Output of <code>php --version</code>:</p>
  
  <pre><code>PHP 5.3.3-7+squeeze15 with Suhosin-Patch (cli) (built: Mar  4 2013 13:11:17) 
  Copyright (c) 1997-2009 The PHP Group
  Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
      with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
  </code></pre>