title: Firefox tries to download .php file on local apache server instead of render result
body: <p>I've been trying to install both Apache and PHP from source so they work together, as a "to see if I can" project. </p>
  
  <p>However, when I try to load a "localhost" file, firefox just starts downloading the .php page instead of opening it. </p>
  
  <p>I'm pretty sure I've added the correct handlers in ./conf/httpd.conf, they are shown below</p>
  
  <pre><code>#configure for php
  AddHandler php-script .php
  
  AddType text/html .php
  AddType application/x-httpd-php-source phps
  AddType application/x-httpd-php5 .php
  </code></pre>
  
  <p>I've also tried replacing</p>
  
  <pre><code>AddType application/x-httpd-php5 .php
  </code></pre>
  
  <p>with </p>
  
  <pre><code>AddType application/x-httpd-php5 php
  </code></pre>
  
  <p>and</p>
  
  <pre><code>AddType application/x-httpd-php .php
  </code></pre>
  
  <p>and</p>
  
  <pre><code>AddType application/x-httpd-php php
  </code></pre>