title: Apache Virtual Host not parsing PHP
body: <p>I decided to enable virtual hosts on my Apache server, and chose to make it port-based.</p>
  
  <p>First thing I did, of course, was RTM.  I followed the instructions <a href="http://httpd.apache.org/docs/2.0/vhosts/examples.html" rel="noreferrer">found here</a>. Well, it worked -- kind of. As far as the virtual host running, it does.  The content pulled from :80 is different from :8080.</p>
  
  <p>But PHP isn't working. The "original site", (port 80) is running PHP just great.  The port 8080 site, however, sends the PHP to the browser.  I see nothing in the browser, but the source code shows:</p>
  
  <pre><code>&lt;?php
  echo "It worked!";
  ?&gt;
  </code></pre>
  
  <p>This topic seems to be very loosely documented on a few websites, but either I can't find a solution in them, or the solution listed isn't working for me.</p>
  
  <p>Again, the virtual host itself is running fine.  PHP, on the other hand, is not.</p>
  
  <p>Any ideas on what it could be?  What content from my httpd.conf file should I provide so I don't blow up my question by copy/pasting the whole thing?</p>
  
  <p>(Sorry I forgot to post that I had these in place, Phil.  Adding to avoid further confusion)</p>
  
  <pre><code>Listen 80
  Listen 8080
  
  NameVirtualHost *:80
  NameVirtualHost *:8080
  
  &lt;VirtualHost *:80&gt;
      ServerName mysite.com
      DocumentRoot /var/www/vhosts/Site1/httpdocs
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:8080&gt;
      ServerName mysite.com
      DocumentRoot /var/www/vhosts/Site2/httpdocs
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I tried adding this inside the tags:</p>
  
  <pre><code>AddHandler php5-script .php
  AddType text/html .php
  </code></pre>
  
  <p>...but to no avail.</p>