Page 1 of 1

php5-curl

Posted: 12 Jul 2009, 13:07
by rasel
Hello,

Today I updated my system to 1.2.0. After this, one of my pages that uses curl starts to give this error:

Fatal error: Call to undefined function curl_version() in /usr/share/web-admin/....

When I used this command line:

php -i | grep curl

it gives nothing. So my curl support in PHP lost. I used

apt-get remove php5-curl
apt-get install php5-curl

to reinstall this module. But it doesn't work anymore.

Any ideas?

Re: php5-curl

Posted: 12 Jul 2009, 13:47
by carl
rasel wrote:Hello,

Today I updated my system to 1.2.0. After this, one of my pages that uses curl starts to give this error:

Fatal error: Call to undefined function curl_version() in /usr/share/web-admin/....

When I used this command line:

php -i | grep curl

it gives nothing. So my curl support in PHP lost. I used

apt-get remove php5-curl
apt-get install php5-curl

to reinstall this module. But it doesn't work anymore.

Any ideas?
Due to our separation of admin interface php and normal php, we've made some changes in /etc/php5 so normally modules isn't activated per default. What you need to do is to symlink
/etc/php5/conf.d/curl.ini to /etc/php5/apache2/conf.d/curl.ini and /etc/php5/cli/conf.d/curl.ini (if cli is needed).

Re: php5-curl

Posted: 12 Jul 2009, 15:22
by rasel
Now it's working, thanks for the info.