title: Apache 2.2.2 Refusing To Load/Deload PHP
body: <p>I just updated the default OS 10.8 installation of PHP to PHP 5.5.1 using homebrew, and I have updated my <code>httpd.conf</code> file at <code>/etc/apache2</code> but Apache still loads the old, PHP 5.3.15.</p>
  
  <p>I have even uncommented all php5_module lines and it still loads PHP... I am extremely pissed that this refuses to work - it shouldn't even be loading php now, which proves it's not even reading that config file. </p>
  
  <p>I then proceeded to change all other config files in my <code>/etc/apache2</code> directory, and it still refuses to load the correct PHP version and continues to load PHP in the first place.</p>
  
  <p>I have then deleted all files in <code>/etc/apache2</code> to JUST contain <code>httpd.conf</code>, and it still wont change it's behaviour - I am about ready to punch a hole through my screen.</p>
  
  <p>I followed homebrews instructions to the letter, including the obvious apache restart, and I even tried restarting my machine as a last, panic resort.</p>
  
  <p>I have spent the better part of 2 hours trying to "fix" this, does anyone have any ideas on how to solve this or what is going on?</p>
  
  <hr>
  
  <p><strong>Here's my current <code>httpd.conf</code>, around the php5_module area</strong></p>
  
  <p>The 555's were extra precaution, but it's still stubborn as hell.</p>
  
  <pre><code># LoadModule php5_module 55555libexec/apache2/libphp5.so
  # LoadModule php5_module    555555/usr/local/opt/php55/libexec/apache2/libphp5.so
  </code></pre>
  
  <p><strong>Here's what I see when I go to <code>localhost</code></strong></p>
  
  <pre><code>Apache/2.2.22 (Unix) DAV/2 PHP/5.3.15 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/0.9.8x
  </code></pre>
  
  <p><strong>Querying the binary gives:</strong></p>
  
  <pre><code>[ 558 / 58 / 0 ] $ apachectl -V
  Server version: Apache/2.2.22 (Unix)
  Server built:   Dec  9 2012 18:57:18
  Server's Module Magic Number: 20051115:30
  Server loaded:  APR 1.4.5, APR-Util 1.3.12
  Compiled using: APR 1.4.5, APR-Util 1.3.12
  Architecture:   64-bit
  Server MPM:     Prefork
    threaded:     no
      forked:     yes (variable process count)
  Server compiled with....
   -D APACHE_MPM_DIR="server/mpm/prefork"
   -D APR_HAS_SENDFILE
   -D APR_HAS_MMAP
   -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
   -D APR_USE_FLOCK_SERIALIZE
   -D APR_USE_PTHREAD_SERIALIZE
   -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
   -D APR_HAS_OTHER_CHILD
   -D AP_HAVE_RELIABLE_PIPED_LOGS
   -D DYNAMIC_MODULE_LIMIT=128
   -D HTTPD_ROOT="/usr"
   -D SUEXEC_BIN="/usr/bin/suexec"
   -D DEFAULT_PIDLOG="/private/var/run/httpd.pid"
   -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
   -D DEFAULT_LOCKFILE="/private/var/run/accept.lock"
   -D DEFAULT_ERRORLOG="logs/error_log"
   -D AP_TYPES_CONFIG_FILE="/private/etc/apache2/mime.types"
   -D SERVER_CONFIG_FILE="/private/etc/apache2/httpd.conf"
  </code></pre>
  
  <p>How do I fix this?</p>