Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Symfony:找不到套接字传输“;http「;_Php_Symfony_Debian - Fatal编程技术网

Php Symfony:找不到套接字传输“;http「;

Php Symfony:找不到套接字传输“;http「;,php,symfony,debian,Php,Symfony,Debian,我正在努力学习Symfony。所以我已经从下载了安装程序 我的http\u代理/https\u代理已定义,我的DNS也已定义。除非,否则命令sudo curl-LsShttps://symfony.com/installer -用于下载安装程序的o/usr/local/bin/symfony无法工作 现在,我想创建一个新项目,因此在我的项目文件夹中键入symfony new project。如果我指定symfony new project 2.8或symfony new project 3.0,

我正在努力学习Symfony。所以我已经从下载了安装程序

我的
http\u代理
/
https\u代理
已定义,我的DNS也已定义。除非,否则命令
sudo curl-LsShttps://symfony.com/installer -用于下载安装程序的o/usr/local/bin/symfony
无法工作

现在,我想创建一个新项目,因此在我的项目文件夹中键入
symfony new project
。如果我指定
symfony new project 2.8
symfony new project 3.0
,情况也是如此

结果是一条错误消息:

 Downloading Symfony...

  [GuzzleHttp\Exception\RequestException]
  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

  [GuzzleHttp\Ring\Exception\RingException]
  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>]
如果我执行
PHP-v
,我的PHP版本是:

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
我的问题:当我尝试创建一个新项目时,为什么会出现错误,以及如何修复它?是因为PHP版本吗?我需要linux软件包还是其他PHP扩展?还有什么地方需要配置吗?

Arf-\uu-'

好的,我昨天在这一点上被封锁了半天。这就是我决定询问StackOverflow的原因。。。最后我找到了答案

我必须安装
php5 curl

apt get install php5 curl


希望它将来至少能帮助别人。

谢谢。它起作用了。我在代理服务器后面使用laravel。
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