Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

php5-curl

Got problems with your B2 or B3? Share and get helped!
Post Reply
rasel
Posts: 23
Joined: 25 May 2007, 07:21

php5-curl

Post 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?
carl
Posts: 474
Joined: 07 May 2008, 04:41

Re: php5-curl

Post 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).
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com
rasel
Posts: 23
Joined: 25 May 2007, 07:21

Re: php5-curl

Post by rasel »

Now it's working, thanks for the info.
Post Reply