【问题标题】:how install curl php in centoscentos如何安装curl php
【发布时间】:2020-12-11 09:50:29
【问题描述】:

我正在尝试通过 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()

我通过将; 放在extension=php_curl.dll 更改文件php.ini 并重新启动服务httpd 但似乎不起作用。谁能告诉我

【问题讨论】:

    标签: php curl centos php-curl php-ini


    【解决方案1】:

    根据this article你应该下一步做什么:

    以 root 身份登录并运行

    yum install curl
    

    安装 php-curl

    yum install php-curl
    

    【讨论】:

      猜你喜欢
      • 2020-11-07
      • 1970-01-01
      • 1970-01-01
      • 2014-09-27
      • 2016-02-29
      • 2012-05-03
      • 2012-05-19
      • 1970-01-01
      相关资源
      最近更新 更多