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条)

报告相同问题?

悬赏问题

  • ¥15 MATLAB怎么通过柱坐标变换画开口是圆形的旋转抛物面?
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥30 用arduino开发esp32控制ps2手柄一直报错
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题