【发布时间】:2019-02-09 02:29:38
【问题描述】:
在将此问题标记为重复之前,请查看我的问题。 我正在尝试使用我的 connectionString 连接到 Azure 表,这给了我以下错误:
failed to open stream: Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?
为此,我意识到我的 openssl 没有加载。按照 Drew 的回答 here,但正如预期的那样,在取消注释:extension=php_openssl.dll 并运行我的服务器后,我收到以下错误:
/usr/lib/php/20151012/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
这意味着 php_openssl.dll 不在我的扩展库中。因此,正如答案所建议的那样,我尝试下载 dll,但无法在 Ubuntu 上找到它。我也尝试使用
安装opensslsudo apt-get install openssl
我得到的:
openssl is already the newest version (1.0.2g-1ubuntu13)
然后我也继续按照this 的说明进行操作,但是当我编写命令时:
tar zxvf php-7.0.18.tar.gz (where my PHP version is 7.0.18)
我收到以下错误:
tar (child): php-7.0.18.tar.gz: Cannot open: No such file or directory
我完全卡住了,无法弄清楚如何找到 php_openssl.dll 并将其放入我的 PHP 扩展文件夹 20151012 中。 任何形式的帮助将不胜感激:)
编辑:
我已经在上面提到了为什么PHP openssl in Ubuntu 上发布的答案对我不起作用。
【问题讨论】:
-
DLL 文件仅适用于 Windows 操作系统。
-
dll文件是windows文件
-
使用
find命令定位openssl.so文件并适当地编辑php.ini。通常它的扩展目录 -
@thepieterdc 请再次查看我的问题(我已经对 is 进行了编辑)为什么您建议的我的问题副本中的方法对我不起作用。
标签: php ubuntu openssl ubuntu-16.04