Symfony : Unable to find the socket transport quot;httpquot;(Symfony:无法找到套接字传输“http)
问题描述
I'm trying to learn Symfony. So I've downloaded the installer from symfony.com.
My http_proxy
/ https_proxy
are defined, and my DNS too. Unless, the command sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
used to download the installer could not work.
Now, I want to create a new project, so in my project folder I type symfony new project
. Same thing if I specify symfony new project 2.8
or symfony new project 3.0
.
The result is an error message :
Downloading Symfony...
[GuzzleHttpExceptionRequestException]
Error creating resource: [message] fopen(http://symfony.com/download?v=Symfony_Standard_Vendors_latest.tgz): failed to open stream: Unable to find the socket transport "http" -
did you forget to enable it when you configured PHP?
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 406
[message] Undefined variable: http_response_header
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 407
[GuzzleHttpRingExceptionRingException]
Error creating resource: [message] fopen(http://symfony.com/download?v=Symfony_Standard_Vendors_latest.tgz): failed to open stream: Unable to find the socket transport "http" -
did you forget to enable it when you configured PHP?
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 406
[message] Undefined variable: http_response_header
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 407
new <directory> [<version>]
If I do a phpinfo()
, I've openssl :
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1k 8 Jan 2015
OpenSSL Header Version OpenSSL 1.0.1k 8 Jan 2015
Openssl default config /usr/lib/ssl/openssl.cnf
My PHP version if I do a php -v
:
PHP 5.6.17-0+deb8u1 (cli) (built: Jan 13 2016 09:10:12)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
My question : Why is there an error when I try to create a new project and how to fix it ? Is it due to PHP version ? Do I need a linux package or an other PHP extension ? Is there anything else to configure somewhere ?
Arf -_-'
Ok, I've been blocked half a day yesterday on this point. That'why I decided to ask on StackOverflow... And Finally I just found the answer ...
git-hub Symfony-installer issues
I had to install php5-curl
.
apt-get install php5-curl
Hope it could at least help someone in the future.
这篇关于Symfony:无法找到套接字传输“http"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Symfony:无法找到套接字传输“http"
基础教程推荐
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01