title: PHP files are downloaded by browser instead of processed by apache2 after creating virtual hosts
body: <p>I created a virtual host in apache2 (LAMP) as shown below and the php files are downloaded by the browser instead of processed by apache. I created an HTML file and it worked.</p>
  
  <p>/var/www/myvirtualhost.com/public_html</p>
  
  <p></p>
  
  <pre><code>ServerAdmin webmaster@localhost.com
  
  DocumentRoot /var/www/myvirtualhost/public_html/
  
   ServerName myvistualhost
  </code></pre>
  
  <p></p>