facebook登录问题

facebook登录出现如下错误:Protocol https not supported or disabled in libcurl

查看php还支持curl,执行

whereis curl
/usr/bin/curl -V 支持https

问题出哪里了,郁闷了好几天,最后查看php的./config 原来--with-curl=/usr/local/curl

执行/usr/local/curl/bin/curl -V 发现不支持https。这才想起来用售前,最后用 yum install curl 编译了一遍,结果查不出来问题

重新编译curl ./configure --prefix=/usr/local/curl  --with-ssl && make && make install 

问题全部解决

 

参考:http://www.520sz.com/protocol-https-not-supported-or-disabled-in-libcurl%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95.html

你可能感兴趣的:(Facebook)