title: Can't access php files on local apache server
body: <p>I have setup a local apache2 server, and it works and display correctly for any html files located at <code>home/user/website</code>, but it gives me an <code>404 error</code> when i try to access php files.</p>
  
  <p>i.e:</p>
  
  <pre><code>~/website ls
  hello.php  index.html  test2.html  test.php
  </code></pre>
  
  <p><code>127.0.1.1/index.html</code> and <code>127.0.1.1/test2.html</code> loads normally but <code>127.0.1.1/hello.php</code> and <code>127.0.1.1/test.php</code> gives me a 404</p>
  
  <p>Theres no trace of error on the error.log file though there's a 404 GET on the <code>access.log</code> file:</p>
  
  <p><code>127.0.0.1 - - [25/Sep/2014:00:35:01 -0300] "GET /hello.php HTTP/1.1" 404 273 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"</code></p>
  
  <p>I have this on the <code>apache2.conf</code>, not sure if it's correct:</p>
  
  <pre><code>&lt;Directory /home/user/website&gt;
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>I configured apache2 to run with hhvm trough the scripts that comes with hhvm.
  My system is ubuntu 14.04
  Thanks.</p>