title: PHP not running on VirtualHost after upgrading to OS X Yosemite
body: <p>Upgraded to OS X Yosemite and now my virtualhosts are spitting out the PHP file contents instead of executing the file.</p>
  
  <p>This works correctly:</p>
  
  <pre><code>http://localhost 
  </code></pre>
  
  <p>This spits out the file contents onto the screen:</p>
  
  <pre><code>http://localhost/~MYUSERNAME
  
  &lt;?php phpinfo();
  </code></pre>
  
  <p><a href="http://testing.dev" rel="nofollow">http://testing.dev</a> spits out the</p>
  
  <pre><code>&lt;?php and the contents of this file (which is WordPress)
  </code></pre>
  
  <p>apachectl -t</p>
  
  <pre><code>Syntax OK
  </code></pre>
  
  <p>/etc/apache2/extra/httpd-vhosts.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName localhost
      DocumentRoot /Library/WebServer/Documents/
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      ServerName testing.dev
      ServerAlias www.testing.dev
      DocumentRoot "/Users/*/Sites/testing"
      ErrorLog "/private/var/log/apache2/testing.dev-error_log"
  
      &lt;Directory "/Users/*/Sites/testing-env/"&gt;
           Options Indexes FollowSymLinks
           AllowOverride AlL
           Order allow,deny
           Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>/etc/hosts</p>
  
  <pre><code>##
  # Host Database
  #
  # localhost is used to configure the loopback interface
  # when the system is booting.  Do not change this entry.
  ##
  127.0.0.1       localhost
  255.255.255.255 broadcasthost
  ::1             localhost
  fe80::1%lo0     localhost
  127.0.0.1       testing.dev
  </code></pre>
  
  <p>Why is it spitting out the PHP file instead of executing it?</p>
  
  <p>running php -v gives me</p>
  
  <pre><code>PHP 5.5.3 (cli) (built: Aug 28 2013 13:28:31)
  Copyright (c) 1997-2013 The PHP Group
  Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
     with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans
  </code></pre>
  
  <p>error log shows:</p>
  
  <pre><code>[Mon Nov 17 17:30:08.338143 2014] [auth_digest:notice] [pid 3633] AH01757: generating secret for digest authentication ...
  [Mon Nov 17 17:30:08.339341 2014] [mpm_prefork:notice] [pid 3633] AH00163: Apache/2.4.9 (Unix) PHP/5.5.14 configured -- resuming normal operations
  [Mon Nov 17 17:30:08.339391 2014] [core:notice] [pid 3633] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
  </code></pre>