2010-04-14 64 views
3

我试图安装PECL扩展pecl_http,以便我可以使用PHP的http_negotiate_language()函数。在Debian中安装PHP扩展

我在Apache2和Debian Lenny上运行PHP5。我从debian repo安装了php_http包,但是,我仍然无法在我的php脚本中使用该功能!该包也不会在phpinfo()下显示出来。我尝试从PECL安装它,但我不能。

是否有一些在PHP中启用这些扩展的过程?有点像a2enmod的Apache?

注意:这是从http://forum.slicehost.com/comments.php?DiscussionID=4650

一个转贴我也尝试添加扩展= p​​ecl_http.so我的Apache2/php.ini中没有效果。

任何猜测?

+0

此去ServerFault – Luiscencio 2010-04-14 22:17:32

+0

嗯,有对SO几个相关的问题,所以我想在这个地方把它。 – Nick 2010-04-15 00:08:04

回答

2

我结束了与PECL安装扩展。

为了记录在案,正确的除了为php.ini,使pecl_http Linux下的是:

extension=http.so