Posts Tagged ‘system administration’

h1

Installing PECL shared extensions

July 30, 2009

[root@server ]# ls -l `which curl` `which curl-config`
lrwxrwxrwx 1 root root 21 Mar 7 10:59 /usr/bin/curl -> /opt/curlssl/bin/curl
lrwxrwxrwx 1 root root 28 Mar 7 10:55 /usr/bin/curl-config -> /opt/curlssl/bin/curl-config

[root@server ]# cd /root/ ; wget http://pecl.php.net/get/pecl_http-1.6.3.tgz
[root@server ]# tar -zxvf pecl_http-1.6.3.tgz
[root@server ]# cd pecl_http-1.6.3
[root@server ]# phpize
[root@server ]# ./configure –with-http-curl-requests=/opt/curlssl
[root@server ]# make
[root@server ]# make test
[root@server ]# make install
[root@server ]# php -i | grep “Configuration File”
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

[root@server ]# vi /usr/local/lib/php.ini , and add

extension=http.so ( below extension_dir line in php.ini , make sure extension_dir alredy points to the folder having http.so lib )

** curl / curl-config may depend on your system setup. you can also use –prefix=/usr/local/pecl_http or anything you want)

Follow

Get every new post delivered to your Inbox.