Ubuntu 10.04 & PHP 5.3: Installing pecl_http

To install the pecl_http PHP extension on Ubuntu 10.04 follow the instructions below:

  1. Install the required packages:
    # sudo apt-get install php-pear php5-dev libcurl4-openssl-dev
  2. Install pecl_http:
    # sudo pecl install pecl_http
  3. Create file /etc/php5/conf.d/http.ini with the following content:
    extension=http.so
  4. 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:

  1. Ubuntu 10.04: Setup APC for PHP 5.3 and Apache2
  2. Ubuntu 9.10: Setup APC for PHP5 and Apache2
  3. Ubuntu 10.04 & PHP 5.3: Setup PDFlib 6 with PECL
  4. Debian/Ubuntu & Apache 2: Transparent reverse proxy with mod_proxy
  5. Ubuntu 9.10 & VDR: Setup EPGSearch plugin

Comments

  1. Vijay Kumbhar

    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

  2. PetriDish

    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?

  3. Manpreet

    Thanks man. I had already wasted time and was not creating .ini file. Helped alot. Thanks again.

  4. Szépe Viktor

    Thank You very much!
    Plese make the code selectable with mouse (FF11)

  5. Jan Jonas

    Thanks for your comment. The code should be selectable now.

Leave a comment

Your email address will not be published. Required fields are marked *

*

*