[英]cURL Call to undefined function curl_init
I've got a problem with my website and server (DEBIAN 8). 我的网站和服务器(DEBIAN 8)有问题。
I've got an error: 我有一个错误:
Fatal error: Call to undefined function curl_init() in /var/www/example.pl/public_html/ajax.php
致命错误:调用/var/www/example.pl/public_html/ajax.php中未定义的函数curl_init()
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? 问题出在哪儿?
Go to your php.ini file and remove the ;
转到您的php.ini文件并删除; mark from the beginning of the following line:
从以下行的开头进行标记:
;extension=php_curl.dll
Then it will look like this :- 然后它看起来像这样:-
extension=php_curl.dll
Curl might be installed but you still need to enable the curl extension for php. 可以安装Curl,但是您仍然需要为php启用curl扩展。
Go to your php.ini file and uncomment: 'extension=php_curl.dll' 转到您的php.ini文件并取消注释:“ extension = php_curl.dll”
您需要打开名为“ curl”的php扩展模块
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.