Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

This is essentially a repost of Hoping maybe someone can help me here.

I've done this:

sudo apt-get install php-pear 
sudo apt-get install php5-dev 
sudo apt-get install libcurl3-openssl-dev

which installs fine. However, the next step:

sudo pecl install pecl_http 

Doesn't install the extension, but merely downloads it. There are no error messages. So I have unpacked it and built it myself per Essentially:

cd pecl_http
make install

I also make test'd to check all ok - and it failed one test: HttpRequest, which is kind of fundamental to this package. And indeed this doesn't work:

$r = new HttpRequest('');
echo $r->getResponseCode();

No request is sent, the response code is zero, but no errors either.

How can I get this damn thing installed? Is this a bug? Am I doing something wrong? Any alternatives, workarounds? Help appreciated.


share|improve this question

The module which you built manually needs to be included in your php.ini

Php must know what to load.... So find .so file move it to the php extensions and list it in php :)

The readme where you compiled the module should have explained that

Hope this helps :)

share|improve this answer

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.