To install the pecl_http PHP extension on Ubuntu 10.04 follow the instructions below:
- Install the required packages:
# sudo apt-get install php-pear php5-dev libcurl4-openssl-dev - Install pecl_http:
# sudo pecl install pecl_http - Create file /etc/php5/conf.d/http.ini with the following content:
extension=http.so
- Restart Apache2:
# sudo /etc/init.d/apache2 restart
After restarting the Apache2 web server a “http” section should be included in the phpinfo() output.
Related posts:
Thanks Jan,
I was tried tons of tutorials to install the pecl http, i installed it successfully but i can not be able to configure it. But from your tutorial it worked.
Thanks a lot … for gr8 work
Nice article, I’m trying to do this on an ec2 instance by passing a script to set up pecl_http via the user_data parameter. Any ideas on how to automate the process?