Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two instances of PHP in my Ubuntu. One is xampp (/opt/lampp/bin) and the other is in /etc/php5. I want to install pecl extension for xampp php but every command i make it works only for /etc/php5

here's what I type:

  1. cd imagick-3.1.0b1/
  2. /opt/lampp/bin/phpize
  3. ./configure
  4. make
  5. make install

what am I doing wrong?

share|improve this question
up vote 1 down vote accepted

Use the --with-php-config option to the configure script to point it to the correct php-config5 binary, like so:

./configure --with-php-config=/usr/local/php5/bin/php-config5
share|improve this answer
it works, thanks – czarek zmuda May 23 '11 at 20:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.