pecl_http extension not loading
Posted
by
Tegan Snyder
on Server Fault
See other posts from Server Fault
or by Tegan Snyder
Published on 2012-06-28T20:28:57Z
Indexed on
2012/06/28
21:18 UTC
Read the original article
Hit count: 474
For some reason pecl_http extension is not showing up in my test.php file with contains:
<?php phpinfo(); ?>
I just installed pecl_http using:
pecl install pecl_http
The install was successful and I verified it by running:
pecl list
Installed packages, channel pecl.php.net:
=========================================
Package Version State
mongo 1.2.10 stable
pecl_http 1.7.4 stable
I then located my php.ini file using:
php -i | grep 'Configuration File'
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
I edited it in vim and added:
extension=http.so
Finally I restarted Nginx and PHP-FastCGI:
/etc/init.d/nginx restart
/etc/init.d/php-fastcgi stop
/etc/init.d/php-fastcgi start
My PHP extension_dir is :
/usr/lib/php5/20090626
I verified that "http.so" is located in that directory.
Any ideas why it's not loading?
My machine is running a Ubuntu 10.04 LTS 64bit Profile on Linode. The only other extensions I have installed are New Relic and Mongo.
Thanks!
© Server Fault or respective owner