?> 微信登录,QQ登录 nginx 502 错误日志10003解决办法(页 1) - wdCP V3|Linux服务器/云主机/虚拟主机管理系统 - WDlinux官方论坛 Linux服务器架构,性能优化.免费CDN系统,智能DNS,负载均衡,集群分流等应用 - Powered by Discuz! Archiver

WDlinux官方论坛's Archiver

liuzixue 发表于 2018-2-8 14:19

微信登录,QQ登录 nginx 502 错误日志10003解决办法

这几天公司的论坛被黑了,重新安装了wdcp以后发现微信登录,QQ登录一直提示502错误。找了几天问题,今天终于发现了解决办法,原来是因为wdcp安装后默认的curl是nss,换成openssl就好了。下面附上解决步骤,希望能帮到遇到同样问题的朋友

在centos 6上面,curl模块的ssl 支持默认为NSS,涉及到的程序里有https,是需要双向认证的,这时使用NSS会报错,所以需要更换为openssl.

一、查看系统自带的curl的版本

[root@localhost local]# curl -V
curl 7.19.7
二、得到curl当前版本是7.19.7,我们去官方下载http://curl.haxx.se/download/archeology/ 同样版本,然后解压、编译。

wget http://curl.haxx.se/download/archeology/curl-7.19.7.tar.gz
tar -zxf curl-7.19.7.tar.gz
cd curl-7.19.7
./configure --without-nss --with-ssl
make && make install
#–without-nss 禁用nss, –with-ssl启用openssl的支持.

三、将curl的库载入动态共享文件,并重新加载

echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
四、查看新安装后curl的版本

[root@localhost local]# curl -V
curl 7.19.7 (x86_64-unknown-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1e zlib/1.2.3 libidn/1.18
Protocols: tftp ftp telnet dict http file https ftps
Features: IDN IPv6 Largefile NTLM SSL libz
五、重启你的httpd/nginx服务和php服务器

service nginx restart #或service httpd restart
service php-fpm restart

至此问题解决!

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.