Re: Fatal error: Call to undefined function curl_init() in …/wp-content/plugins/twitter-tools/twitteroauth.php on line 201
Installing php-curl didn’t work for me, sadly. The odd thing is, it is getting picked up by php even when I run it from the command-line. Just to prove it to myself, I deinstalled php5-curl and started over: [I’m using lighttpd, so the php.ini file that gets used is in /etc/php5/cgi]
~# php --php-ini /etc/php5/cgi -r 'curl_init(); print "ok\n";'
Fatal error: Call to undefined function curl_init() in Command line code on line 1
root@boostpro:~# aptitude install php5-curl
...
The following NEW packages will be installed:
php5-curl
0 packages upgraded, 1 newly installed, 0 to remove and 27 not upgraded.
...
Building tag database... Done
root@boostpro:~# php --php-ini /etc/php5/cgi -r 'curl_init(); print "ok\n";'
Fatal error: Call to undefined function curl_init() in Command line code on line 1
root@boostpro:~# ls /etc/php5/conf.d/
gd.ini imagick.ini mysqli.ini mysql.ini pdo.ini pdo_mysql.ini pdo_pgsql.ini pgsql.ini
root@boostpro:~# mv /tmp/curl.ini /etc/php5/conf.d/
root@boostpro:~# php --php-ini /etc/php5/cgi -r 'curl_init(); print "ok\n";'
ok
root@boostpro:~# php --php-ini /etc/php5/cgi -i | grep -i curl
additional .ini files parsed => /etc/php5/cli/conf.d/curl.ini,
curl
cURL support => enabled
cURL Information => libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1
root@boostpro:~#