嘿,伙计们,我正在运行PHP5.4.0,我不能使用cURL或files_get_content() https连接。
在PHP脚本中使用curl显示:
[root@ns1]# /opt/php/bin/php -q test.php
* About to connect() to www.google.com port 443
* Trying 74.125.225.210... * connected
* Connected to www.google.com (74.125.225.210) port 443
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
Segmentation fault使用file_get_contents()显示:
Warning: file_get_contents(): Unable to find the wrapper "https" - did
you forget to enable it when you configured PHP? in /test.phpOpenSSL和OpenSSL已经安装,并且还配置了对SSL连接的cURL支持。请参阅:http://i.imgur.com/ExAIf.png
知道可能出了什么问题吗?
更多信息: CentOS 5.8(64)和Nginx1.2.4
发布于 2012-10-31 09:21:13
通过升级到5.4.8解决了这个问题。
发布于 2012-10-31 18:33:30
您可能想尝试使用--带有-openssl(您的其他要求)从源代码编译PHP。它将保证Curl和PHP说的是相同的版本。
发布于 2012-11-28 19:48:14
升级到5.4.9是为我做的。很明显有一个5.4.4的bug。
https://serverfault.com/questions/443446
复制相似问题