dongyi5425 2016-05-20 08:38
浏览 221

cURL调用未定义的函数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?

  • 写回答

3条回答 默认 最新

  • dpgui8229808 2016-05-20 08:40
    关注

    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
    
    评论

报告相同问题?