How to install pecl_http php extension ?

VPS and dedicated server security tips. Preventing from attacks, ddos and more.

How to install pecl_http php extension ?

Postby Mark » Tue Dec 22, 2009 6:52 pm

The pecl_http php extension is used to provide a convenient and powerful set of functionality for most of PHP’s applications ,like HTTP urls, dates, redirects, headers and messages, provides means for negotiation of clients preferred language and charset, as well as a convenient way to send any arbitrary data with caching and resuming capabilities.

You can easily install it on Linux server using pecl or pear command.

Code: Select all
# pecl install pecl_http


If you have any problem/error while installing it using pecl command then you can do it manually , please follow the steps
1) Download the pecl_http source file

Code: Select all
wget http://pecl.php.net/get/pecl_http-1.6.1.tgz


2) uncompress the file

Code: Select all
tar –xzvf pecl_http-1.6.1.tgz

Code: Select all
cd pecl_http-*


3) compile and install

Code: Select all
# phpize
# ./configure

Code: Select all
#make
#make install

4) Once it done you will have add “extension=http.so” line to php.ini file.
Mark
 
Posts: 124
Joined: Fri Dec 11, 2009 2:18 pm

Return to Securing your server

Who is online

Users browsing this forum: No registered users and 2 guests

cron