我使用Ubuntu 16.04服务器,我已经跑安装后Curl不工作,为什么?
sudo apt-get install php-curl
,并得到输出:
php-curl is already the newest version
当我运行:
curl -V
我得到:
curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10
zlib/1.2.8 libidn/1.32 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
在phpinfo( )页我没有看到卷曲启用/安装,当我运行任何卷曲功能我得到错误:
Fatal error: Uncaught Error: Call to undefined function curl_version() in ...
昨天工作正常。我更新了PHP,现在它不再工作...
尝试添加你的php版本号,当你安装php_curl,像'sudo apt-得到安装php7.1-curl'或'sudo apt-get install php5.6-curl' –