doukun0888 2015-07-16 11:58
浏览 213
已采纳

PHP 5.6 OpenSSL无法正常工作

I am trying to create an API but running into the following error

file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

Checking if OpenSSL and wrappers are enabled:

openssl: no
http wrapper: yes
https wrapper: no
wrappers: array(6) { [0]=> string(3) "php" [1]=> string(4) "file" [2]=> string(4) "glob" [3]=> string(4) "data" [4]=> string(4) "http" [5]=> string(3) "ftp" }

Tried everything I could find but nothing works.

PHP version: 5.6.1
OS: SLES 12

If you need more info please let me know.

In order to enable the php_openssl extension I did the following:

  • Installed php-openssl via YAST in SLES 12
  • added "extension=php_openssl.so" to the correct php.ini file
  • 写回答

2条回答 默认 最新

  • duanba8070 2015-07-31 12:39
    关注

    Re-installed OpenSSL and it's working now.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 关于线性结构的问题:希望能从头到尾完整地帮我改一下,困扰我很久了
  • ¥20 设计一个二极管稳压值检测电路
  • ¥15 内网办公电脑进行向日葵
  • ¥15 如何输入双曲线的参数a然后画出双曲线?我输入处理函数加上后就没有用了,不知道怎么回事去掉后双曲线可以画出来
  • ¥50 WPF Lidgren.Network.Core2连接问题
  • ¥15 soildworks装配体的尺寸问题
  • ¥100 有偿寻云闪付SDK转URL技术
  • ¥30 基于信创PC发布的QT应用如何跨用户启动后输入中文
  • ¥20 非root手机,如何精准控制手机流量消耗的大小,如20M
  • ¥15 远程安装一下vasp