title: Enabling memcache on Mac OSX with stock apache and php5
body: <p>I cannot for the life of me figure out how I can enable memcache on Mac OSX to work w/ apache.  I have installed memcache and can verify that it is working via the php command line.</p>
  
  <p>The following command:</p>
  
  <pre><code>php --ri memcache
  </code></pre>
  
  <p>reports that memcache is supported.</p>
  
  <p>However, if I load a local test script that executes phpinfo() in my browser, it does not report that memcahe is installed.  Running a script in my browser that instantiates a new memcache object reports:</p>
  
  <pre><code>Fatal error: Class ‘Memcache’ not found
  </code></pre>
  
  <p>I have edited php.ini and added extensions=memcache.so</p>
  
  <p>I have restarted apache by going to System Preferences->Sharing and disabling and enabling  Web Sharing. I have even tried restarting apache from the command line w/ sudo apachectl restart.</p>
  
  <p>What could I be missing that is preventing php from recognizing memcache when executed through the browser?</p>
  
  <p>Thanks!</p>