4

I'm trying to install the PECL extension pecl_http so that I can use PHP's http_negotiate_language() function.

I'm running PHP5 on Apache2 and Debian Lenny. I installed the php_http package from the debian repo, however, I still can't use that function in my php scripts! The package also doesn't show up under phpinfo(). I tried installing it from PECL, but I could not.

Is there some procedure for enabling these extensions in PHP? Kind of like a2enmod for apache?

Note: This is a repost from http://forum.slicehost.com/comments.php?DiscussionID=4650

I also tried adding extension=pecl_http.so to my apache2/php.ini with no effect.

Any guesses?

2
  • this goes to ServerFault Commented Apr 14, 2010 at 22:17
  • Well, there are several related questions on SO, so I figured this was the place to put it. Commented Apr 15, 2010 at 0:08

1 Answer 1

2

I ended up installing the extension with PECL.

For the record, the correct addition to php.ini to enable pecl_http under Linux is:

extension=http.so
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.