我试图在Ubuntu 17.04机器上安装Symfony3和正在错误在Ubuntu的包装“https”开头:错误创建资源:[消息] fopen()函数:无法找到使用Symfony的
[GuzzleHttp\Ring\Exception\RingException]
Error creating resource: [message] fopen(): Unable to find the wrapper "htt
ps" - did you forget to enable it when you configured PHP?
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/S
treamHandler.php
[line] 406
[message] fopen(https://get.symfony.com/symfony.version): failed to open st
ream: No such file or directory
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/S
treamHandler.php
[line] 406
[message] Undefined variable: http_response_header
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/S
treamHandler.php
[line] 407
当运行symfony new
命令。我正在运行PHP版本7.19和OpenSSL版本1.1.0f。我也尝试过使用OpenSSL版本1.0.2g(Ubuntu软件包管理器提供的版本),并且发生相同的错误。我也尝试使用--with-openssl[=DIR]
标志指向未解压的PHP源代码中的SSL目录从源代码安装PHP,但尽管这样完成后没有错误,但并没有帮助。
我看过的答案是这样的:
但他们都是要么为Windows(告诉我取消对.dll文件在php.ini不Ubuntu上工作)或它们告诉我要安装一个PHP 5包,如php53-opensll
,它不适用于这个系统。
从的phpinfo()的输出包括:
OpenSSL support disabled (install ext/openssl)
在Phar: PHP Archive support
部分,但我不知道正确的过程中适当启用的Phar的支持,如果这确实是问题的区域。
任何建议非常感谢。
现在就试试吧。出于兴趣,你是如何发现这是.so文件的正确名称?我到处寻找,甚至试图改变.dll扩展名为.so ... –
好吧,我这样做,重新启动nginx,我仍然得到相同的错误。唯一的区别是当试图访问我的index.php文件时,nginx现在显示'502 Bad Gateway'而不是phpinfo的详细信息。 –