我試圖在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的詳細信息。 –