在linux中升级OpenSSL后,OpenSSL在php和curl中不更新 [英] OpenSSL in php and curl not update after upgrading OpenSSL in linux

查看:552
本文介绍了在linux中升级OpenSSL后,OpenSSL在php和curl中不更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的PHP程式运作良好,直到几天前。我突然在我的PHP程序中使用curl错误SSL例程:SSL23_GET_SERVER_HELLO:sslv3警报握手失败。我在网上搜索,发现可能是因为我的openssl太旧(0.9.8e),不支持TLS。

My PHP program worked fine until several days ago. I suddenly got an error "SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure" from using curl in my php program. I searched on the net and found it may be because my openssl is too old (0.9.8e) and not support the TLS.

我试过yum update openssl,但它没有帮助,因为Openssl还没有升级,仍然是0.9.8e。所以,我从网上下载并安装了一个较新的版本(1.0.2j)。现在,它确实通过命令openssl version显示新版本号,但它仍然通过phpinfo()和curl -V显示旧版本号。当然,它在运行php程序时仍然显示SSL错误。

I tried "yum update openssl" but it doesn't help as the Openssl hasn't been upgraded and is still 0.9.8e. So, I downloaded and installed a newer version (1.0.2j) from the net. And now, it does displays the new version number by the command "openssl version", but it still displays the old version number by phpinfo() and "curl -V". And of course, it still shows the SSL error while running the php program.

我在服务器设置中是非常新的。如何更新openssl版本的php和curl?

I am very new in server setting. How can I update openssl version in php and curl?

推荐答案

我终于通过下载并安装最新版本的OpenSSL,cUrl和PHP,并为OpenSSL和cUrl的PHP新路径设置配置。

I finally solve the problem by "downloading and installing" the latest version of OpenSSL, cUrl and PHP, and setting the configure for the new paths of OpenSSL and cUrl for PHP.

这篇关于在linux中升级OpenSSL后,OpenSSL在php和curl中不更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆