无法在ubuntu 16.04中下载php_openssl.dll

无法在ubuntu 16.04中下载php_openssl.dll,php,ubuntu,openssl,ubuntu-16.04,Php,Ubuntu,Openssl,Ubuntu 16.04,在将这个问题标记为重复问题之前,请先看看我的问题。 我正在尝试使用我的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的回答,但正如预期的那样

在将这个问题标记为重复问题之前,请先看看我的问题。 我正在尝试使用我的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的回答,但正如预期的那样,在取消注释: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
tar (child): php-7.0.18.tar.gz: Cannot open: No such file or directory
这意味着我的扩展库中不存在php_openssl.dll。因此,正如答案所示,我试图下载dll,但在Ubuntu上找不到。我还尝试使用

sudo apt-get install openssl
我得到:

openssl is already the newest version (1.0.2g-1ubuntu13)
然后,我也继续按照在的说明进行操作,但当我编写命令时:

tar zxvf php-7.0.18.tar.gz  (where my PHP version is 7.0.18)
我得到以下错误:

/usr/lib/php/20151012/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
tar (child): php-7.0.18.tar.gz: Cannot open: No such file or directory
我完全被卡住了,不知道如何找到php_openssl.dll并将其放入我的php扩展文件夹20151012中。 任何形式的帮助都将不胜感激:)

编辑:


我已经在上面提到了为什么发布在的答案对我不起作用

我认为OpenSSL不需要外部扩展,它内置于ubuntu的PHP中,你能尝试删除并重新安装PHP吗?并尝试在浏览器中查看
phpinfo()

您应该能够看到这两个部分


DLL文件仅适用于Windows操作系统。DLL文件是Windows文件,可能重复使用
find
命令来定位
openssl。因此
文件并适当编辑php.ini。通常是扩展名directory@thepieterdc请再次查看我的问题(我已经对is进行了编辑),为什么您建议的我的问题副本中的方法不适用于我。