user5699167
user5699167

Reputation:

cURL Call to undefined function curl_init

I've got a problem with my website and server (DEBIAN 8).

I've got an error:

Fatal error: Call to undefined function curl_init() in /var/www/example.pl/public_html/ajax.php

I checked that I have got curl and yes:

root@Debian-84-jessie-64-minimal ~ # apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Where is the problem?

Upvotes: 0

Views: 2899

Answers (3)

yy xx
yy xx

Reputation: 21

you need open php extension module named 'curl'

Upvotes: 0

Ralph Melhem
Ralph Melhem

Reputation: 757

Curl might be installed but you still need to enable the curl extension for php.

Go to your php.ini file and uncomment: 'extension=php_curl.dll'

Upvotes: 0

Manmohan
Manmohan

Reputation: 740

Go to your php.ini file and remove the ; mark from the beginning of the following line:

;extension=php_curl.dll

Then it will look like this :-

extension=php_curl.dll

Upvotes: 0

Related Questions