title: Why does Apache execute php file on calling file without extension
body: <p>Today I found a strange thing on my server.
  I created a php file (test.php) and wrote some php codes inside it. then I call it using </p>
  
  <pre><code>http://127.0.0.1/test
  </code></pre>
  
  <p>and the "test.php" executed ! How does it understand to run test.php when there is no .php ?
  there is no htaccess file on my root directory to tell the apache do that.
  I guess it may causes security problem. How can I prevent it ?</p>
  
  <p>My OS is ubuntu and the web server is Apache2.</p>