VPS侦探论坛

 找回密码
 注册
查看: 3975|回复: 2

由curl 双向认证出错,引发的一系列问题,救命啊!

[复制链接]
发表于 2016-7-11 08:59:21 | 显示全部楼层 |阅读模式

因为用到微信支付,需要curl 双向认证,百度得出升级curl版本,然而升级以后 就出现了 curl  https 失败502的问题,就和这个帖子一样。
https://bbs.vpser.net/viewthread.php?tid=11684&highlight=curl
我的版本是php5.2.17,lnmp0.9。
重新编译是进入 lnmp0.9/php5.2.17的目录。
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic --with-curl=/usr/local/curl

make && make install
是这样吗?
configure 的参数我是从lnmp/centos.sh里面拿出来的,再在最后加上curl的目录。
救命啊
!!!!!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-7-11 10:40:34 | 显示全部楼层


--with-curlwrappers 去掉试试

再开慢日志和错误日志看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-7-11 11:13:19 | 显示全部楼层

回复 2# 的帖子


首先 非常感谢军哥,这个问题已经解决了
结果:
curl
libcurl/7.29.0 OpenSSL/1.0.1e zlib/1.2.3 libidn/1.18
我先是按照你的
https://bbs.vpser.net/viewthread.php?tid=13067&highlight=curl
把我centos系统里的nss 换成 openssl
然后 重新编译
最后 成功的换成了 7.29.0

问句题外话,我在做一个微信支付的php开发,需要双向证书,但是我证书目录都是正确的  为什么还是提示我ca证书出错
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-29 09:19 , Processed in 0.025345 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表