title: Installing redis with pecl
body: <p>I'm trying to install redis with pecl and finally got the error.</p>
  
  <pre><code>sudo pecl install redis 
  
  In file included from /private/tmp/pear/install/redis/redis.c:27:
  /private/tmp/pear/install/redis/common.h:1:10: fatal error: 'php.h' file not found
  #include "php.h"
       ^
  1 error generated.
  make: *** [redis.lo] Error 1
  ERROR: `make' failed
  </code></pre>
  
  <p>I found the same question as mine </p>
  
  <p><a href="https://stackoverflow.com/questions/22039989/installing-phpredis-on-osx-with-pecl">Installing phpredis on osx with pecl</a></p>
  
  <p>Answer: Looks like your php is not available in environment variable path or installation is picking php from some default location.</p>
  
  <p>How I can confirm if my php is not available in environment variable path or installation is picking php from some default location? Plus, please let me know if you know another way to make it.</p>