简体   繁体   English

无法在Ubuntu 16.04中下载php_openssl.dll

[英]Cannot download php_openssl.dll in ubuntu 16.04

Before marking this question as a duplicate, please have a look at my problem. 在将此问题标记为重复之前,请看一下我的问题。 I am trying to connect to Azure table using my connectionString which gives me the error as: 我正在尝试使用我的connectionString连接到Azure表,该错误为:

failed to open stream: Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?

So for this I realised that my openssl is not loaded. 因此,我意识到我的openssl未加载。 Following Drew's answer here , but as expected, after uncommenting: extension=php_openssl.dll and running my server, I get the following error: 按照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

This means that php_openssl.dll is not present in my extentions library. 这意味着我的扩展库中没有php_openssl.dll。 So as the answer suggested, I tried to download the dll but cannot find it for Ubuntu. 因此,按照答案的建议,我尝试下载dll,但找不到适用于Ubuntu的dll。 I also tried to install openssl using 我也尝试使用以下方法安装openssl

sudo apt-get install openssl

to which I get: 我得到:

openssl is already the newest version (1.0.2g-1ubuntu13)

and then I also proceeded to follow the instructions at this but when I write the command: 然后我又接着跟随在说明这个 ,但是当我写的命令:

tar zxvf php-7.0.18.tar.gz  (where my PHP version is 7.0.18)

I get the following error: 我收到以下错误:

tar (child): php-7.0.18.tar.gz: Cannot open: No such file or directory

I am completely stuck and cannot figure out how to locate php_openssl.dll and put it into my extensions folder 20151012 for PHP. 我完全被卡住,无法弄清楚如何找到php_openssl.dll并将其放入我的PHP扩展文件夹20151012中。 Any kind of help will be greatly appreciated :) 任何类型的帮助将不胜感激:)

Edit: 编辑:

I have already mentioned above why the answer posted at PHP openssl in Ubuntu does not work for me. 我上面已经提到过,为什么在Ubuntu的PHP openssl上发布的答案对我不起作用。

I don't think OpenSSL requires an external extension, its built into ubuntu's PHP, can you try removing and reinstalling PHP again? 我认为OpenSSL不需要外部扩展,它是ubuntu的PHP内置的,您可以尝试再次删除并重新安装PHP吗? and try seeing the phpinfo() in browser? 并尝试在浏览器中查看phpinfo()

您应该能够同时看到这两者

You Should be able to see both of these sections 您应该能够看到这两个部分

您应该能够同时看到这两者

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM