title: Fatal error: Class 'Redis' not found
body: <p>I've installed Redis on my ubuntu 14 server with phpredis extension. Im using Nginx server. I have php testing script</p>
  
  <pre><code>$redis=new Redis() or die("Cannot load Redis module.");
  $redis-&gt;connect('localhost');
  $redis-&gt;set('random', rand(5000,6000));
  echo $redis-&gt;get('random');
  </code></pre>
  
  <p>which is working fine from command-line but not from web browser.</p>
  
  <p>Nginx error log:</p>
  
  <pre><code>[info] 31102#0: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:82
  [error] 31108#0: *21 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Class 'Redis' not found in...
  </code></pre>
  
  <p>i can't see it even in <code>phpinfo()</code></p>
  
  <p>all installed with apt-get install</p>
  
  <p>all other modules (mysql, imagemagick...) are working fine</p>
  
  <p>i've spent few hours on google but haven't found nothing useful</p>