Centos 6.8在php.ini上为php启用curl扩展

时间:2018-04-22 07:39:35

标签: php curl centos

在我的服务器中Centos-6.8-64bit php5.6

在此服务器上我已安装WHM curl

[root@s5 ~]# curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 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
[root@s5 ~]#

当尝试使用curl时,我收到此错误:

cURL error 56: Received HTTP code 405 from proxy after CONNECT (see http://curl.haxx.se/libcurl/c/libcurl-errors.html).
WHM中的

并选择MultiPHP INI Editor我只有这条线用于卷曲

php版本:ep-php56

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;curl.cainfo =

如何解决此问题以使用php的curl扩展名?

0 个答案:

没有答案