?> WDlinux官方论坛 - Powered by Discuz! Board Board logo

标题: [求助] 新浪 腾讯 同步登录 出错 回调 出现 502 Bad Gateway [打印本页]

作者: ickeep    时间: 2012-11-9 02:16     标题: 新浪 腾讯 同步登录 出错 回调 出现 502 Bad Gateway

新浪 腾讯 同步登录 出错 回调 出现 502 Bad Gateway

环境:nginx/1.0.15


查看日志出现以下结果:



2012/11/09 01:50:48 [error] 3670#0: *58 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 27.106.142.143, server: ickeep.com, request: "GET /weibo/callback.php?code=3a2539bfc73967b0f113740a6a0f43b2 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "ickeep.com", referrer: "http://ickeep.com/weibo/"

刚把PHP 升到 5.3 数据库升到 5.5 问题还是没解决。。
web引擎切换
当前使用引擎      nginx         


系统名称:WDlinux Control Panel (简称wdcp)
当前版本: wdcp_v2.5.2(20121108) 最新
wdcp_v2.5.2(20121108) 更新
操作系统:Linux 2.6.18-238.el5
主机 名:localhost
CPU参数:1个1核 64位
CPU型号: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
系统时间:2012-11-09 01:59
运行时间:0天0小时19分
服务器IP:118.244.161.40
系统负载:0.00   0.02   0.07
内存使用:总:498M   已用: 362M   剩余:136M

作者: admin    时间: 2012-11-9 20:26

yum install -y openssl-devel
看下什么结果
如果提示已安装,就手动下载新版本的
openssl-1.0.1c
编译安装
再编译下PHP试试
作者: ickeep    时间: 2012-11-9 22:05

回复 2# admin
对LINUX不熟悉,麻烦老大告诉下,怎么重新编译PHP?
作者: admin    时间: 2012-11-9 23:13

看一健包里的脚本
作者: ickeep    时间: 2012-11-10 02:10

回复 4# admin

安装成功
   [root@localhost ~]# openssl version -aOpenSSL 1.0.1c 10 May 2012
built on: Fri Nov  9 21:09:17 CST 2012
platform: linux-x86_64
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/usr/local/ssl"

openssl编译 ./config --prefix=/usr/local/ssl

make[1]: Entering directory `/root/openssl-1.0.1c/test'
make[1]: Nothing to be done for `generate'.
make[1]: Leaving directory `/root/openssl-1.0.1c/test'

Configured for linux-x86_64.
[root@localhost openssl-1.0.1c]#



PHP 编译 ./configure --with-openssl=/usr/local/ssl




main/php_config.h is unchanged
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+


Thank you for using PHP.


[root@localhost php-5.3.17]#



老大这些都完成了,也重新启动了服务器。。。

结果,还是一样,还是报一样的错。。

而且,用phpinfo()

查看,openssl 的版本 还是 0.98

在SSH下面是:
root@localhost ~]# openssl version -aOpenSSL 1.0.1c 10 May 2012
built on: Fri Nov  9 21:09:17 CST 2012
platform: linux-x86_64

我哪里做错?或者是做差了吗??

作者: admin    时间: 2012-11-10 10:58

你参考下一键包里的相关参数
作者: lply    时间: 2012-11-10 16:14

我也是  腾讯 同步登录 出错 回调 出现 502 Bad Gateway
不知道怎么解决!~
作者: lply    时间: 2012-11-10 16:28

我按 yum install -y openssl-devel 了
OpenSSL 1.0.0-fips 29 Mar 2010
但是还是
腾讯 同步登录 出错 回调 出现 502 Bad Gateway
作者: han7689    时间: 2012-11-10 20:56

DZ系统,我发现我的也是502。这样的原因。发帖也是跳转502.发现这个很大的BUG问题
作者: ufwapscep    时间: 2013-1-5 22:12

502 Bad Gateway   一样的问题。。杯惧
作者: wulali    时间: 2013-1-5 22:23

502 Bad Gateway   一样的问题。。杯惧
ufwapscep 发表于 2013-1-5 22:12

http://www.wdlinux.cn/bbs/thread-3657-1-1.html
作者: ufwapscep    时间: 2013-1-5 23:02

回复 11# wulali
问题解决了,不过网站运行速度慢了很多?
作者: ye1028    时间: 2013-12-22 00:16

运行  这个    yum install -y openssl-devel


Loaded plugins: fastestmirror, security
Determining fastest mirrors
* base: centos.sonn.com
* extras: centos.sonn.com
* rpmforge: mirror.webnx.com
* updates: centos.sonn.com
base                                                     | 3.7 kB     00:00
extras                                                   | 3.4 kB     00:00
rpmforge                                                 | 1.9 kB     00:00
rpmforge/primary_db                                      | 2.7 MB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 817 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package openssl-devel.x86_64 0:1.0.1e-16.el6_5 will be updated
---> Package openssl-devel.x86_64 0:1.0.1e-16.el6_5.1 will be an update
--> Processing Dependency: openssl = 1.0.1e-16.el6_5.1 for package: openssl-devel-1.0.1e-16.el6_5.1.x86_64
--> Running transaction check
---> Package openssl.x86_64 0:1.0.1e-16.el6_5 will be updated
---> Package openssl.x86_64 0:1.0.1e-16.el6_5.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package             Arch         Version                   Repository     Size
================================================================================
Updating:
openssl-devel       x86_64       1.0.1e-16.el6_5.1         updates       1.2 M
Updating for dependencies:
openssl             x86_64       1.0.1e-16.el6_5.1         updates       1.5 M

Transaction Summary
================================================================================
Upgrade       2 Package(s)

Total download size: 2.7 M
Downloading Packages:
(1/2): openssl-1.0.1e-16.el6_5.1.x86_64.rpm              | 1.5 MB     00:00
(2/2): openssl-devel-1.0.1e-16.el6_5.1.x86_64.rpm        | 1.2 MB     00:00
--------------------------------------------------------------------------------
Total                                           8.9 MB/s | 2.7 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : openssl-1.0.1e-16.el6_5.1.x86_64                             1/4
  Updating   : openssl-devel-1.0.1e-16.el6_5.1.x86_64                       2/4
  Cleanup    : openssl-devel-1.0.1e-16.el6_5.x86_64                         3/4
  Cleanup    : openssl-1.0.1e-16.el6_5.x86_64                               4/4
  Verifying  : openssl-devel-1.0.1e-16.el6_5.1.x86_64                       1/4
  Verifying  : openssl-1.0.1e-16.el6_5.1.x86_64                             2/4
  Verifying  : openssl-devel-1.0.1e-16.el6_5.x86_64                         3/4
  Verifying  : openssl-1.0.1e-16.el6_5.x86_64                               4/4

Updated:
  openssl-devel.x86_64 0:1.0.1e-16.el6_5.1

Dependency Updated:
  openssl.x86_64 0:1.0.1e-16.el6_5.1

Complete!


老大看看是否正常




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2