title: Ubuntu: PHP cannot find memcached
body: <p>This is my first introduction with PHP + Memcached on Ubuntu.
  I already did Redis and fully understand Memcached. I installed it successfully, connected with it and successfully executed commands like set/get.</p>
  
  <p>I followed this tutorial to install everything: <a href="https://www.digitalocean.com/community/tutorials/how-to-install-and-use-memcache-on-ubuntu-14-04" rel="nofollow">digitalocean.com (<em>how to install and use memcache on ubuntu 14.04</em>)</a></p>
  
  <p>The problems I'm facing is that <code>phpinfo()</code> is not showing any information about Memcached.</p>
  
  <p>I understand I need to add this in my php.ini file.: </p>
  
  <pre><code>extension=memcache.so
  </code></pre>
  
  <p>I tried to add the extension line in following files, restarted server and still no information.</p>
  
  <pre><code>/etc/php5/apache2/php.ini
  /etc/php5/cli/php.ini
  </code></pre>
  
  <p>If I try to execute the following code, I get </p>
  
  <blockquote>
    <p>Fatal error: class Memcache not found'</p>
  </blockquote>
  
  <pre><code>$memcache = new Memcache;
  $memcache-&gt;connect('localhost', 11211) or die ("Could not connect");
  </code></pre>
  
  <p>I also want to know where "memcache.so" exists.</p>