[英]how install curl php in centos
当我检查时,我正在尝试通过 yum 将 curl 安装到我的 centos 操作系统
curl --version
表明
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.44 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
但是当我运行php -m
仍然没有得到 curl 库。
或者
Call to undefined function curl_init()
我通过 drop 更改了文件php.ini ;
在extension=php_curl.dll
并重新启动服务 httpd 但似乎不起作用。 谁能告诉我
安装了 curl 和 php-curl,但不起作用? 原因可能是:
/etc/php.d/ 中的“curl.ini”文件可能被禁用(重命名为 curl.ini.disabled)。
请执行下列操作:
ls /etc/php.d/
mv /etc/php.d/curl.ini.disabled /etc/php.d/curl.ini
systemctl restart httpd.service
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.