PHP install pecl_http http support

When installing the extension using the PECL tool, the following error occurs:# pecl install channel://pecl.php.net/xhprof-0.9.1downloading xhprof-0.9.1.tgz …Starting to download xhprof-0.9.1.tgz (925,239 bytes)……………..done: 925,239 bytes11 source files, buildingrunning: phpizeCannot find config.m4.Make sure that you run ‘/usr/local/bin/phpize’ in the top level source directory of the moduleERROR: `phpize’ failed

cdl_capture_2012-03-12-16_ 000

Step 0

# sudo apt-get install php-pear php5-dev libcurl4-openssl-dev

# pecl install pecl_http

# sudo /etc/init.d/apache2 restart

Step 1

wget http://pecl.php.net/get/pecl_http-1.7.1.tgz
tar xf pecl_http-1.7.1.tgz
cd pecl_http-1.7.1
sudo phpize

./configure (if you get a curl error 'sudo apt-get install libcurl4-openssl-dev"

sudo make install
sudo echo �extension=http.so� >> /etc/php5/cli/php.ini

Step 2

install compilers

sudo apt-get install build-essential

Step 3

edit php.ini dynamic extensions

extension = http.so

Leave a comment