title: Changing Pecl installation directory
body: <p>Hi i'm having trouble with pecl installation, the problem i'm having is i'm installing <a href="http://gearman.org/" rel="nofollow">gearman</a> , and i'm now at the stage of installation of the pecl PHP extension.</p>
  
  <p>it should be a simple as executing the command :</p>
  
  <pre><code>$ sudo pecl install gearman
  </code></pre>
  
  <p>the installation was successfull and I could even test a php containing</p>
  
  <pre><code>&lt;?php
  echo "Gearman version: " . gearman_version() . PHP_EOL;
  ?&gt;
  </code></pre>
  
  <p>executing it in CLI php using :</p>
  
  <pre><code>$ php gearman_version.php
  </code></pre>
  
  <p>does the trick. Unfortunately I am using a stack. <a href="https://bitnami.com/stack/lapp" rel="nofollow">lappstack</a> to be precise, and I have a separate php in the installation of my lappstack which is in :</p>
  
  <pre><code>/home/userName/lappstack-5.4.34-0/php
  </code></pre>
  
  <p>where php/etc contains my <strong>php.ini</strong> for web use.</p>
  
  <p>now, going back to the pecl installation of gearman, executing the <strong>pecl install gearman</strong>
  results to gearman being installed in a separate php5 installation, and the <strong>gearman.so</strong> is installed in :</p>
  
  <pre><code>/usr/lib/php5/20121212/gearman.so
  </code></pre>
  
  <p>which, ideally, the gearman.so should be contained in :</p>
  
  <pre><code>/home/userName/lappstack-5.4.34-0/php/lib/php/extensions/gearman.so
  </code></pre>
  
  <p>like all my other extensions.</p>
  
  <p>which actually results to the application not being able to use the gearman extension. And the php.ini that is being pointed to, to use gearman is actually the ones in :</p>
  
  <pre><code>/etc/php5/cli
  </code></pre>
  
  <p>and</p>
  
  <pre><code>/etc/php5/apache2
  </code></pre>
  
  <p>I need help, I'm really in the process of getting haywired in my installations. Thanks !</p>