Error installing symphony: fopen failed to open stream: Unable to find the socket transport "http"

-3

I'm following the tutorial for symfony installation, but an error occurs when executing it

  [GuzzleHttp\Exception\RequestException]
  Error creating resource: [message] fopen(https://get.symfony.com/symfony.version): 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(https://get.symfony.com/symfony.version): 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
**

I have already installed apt-get install php5-curl and still the problem continues

    
asked by anonymous 05.02.2018 / 20:03

1 answer

0

This may be that your SSL is not enabled, to enable with PHP5 in Ubuntu va in php.ini and uncomment (remove the ; of the front of extesion= ) the line:

;extension=openssl.so

It should look like this:

extension=openssl.so

If Windows is uncommenting:

;extension=php_openssl.dll

If it is PHP7.2 (windows and linux):

;extension=openssl

Another solution you can try is to enable CURL, use the following command:

 sudo apt-get install php5-curl

If you have already installed and still do not work you can edit in php.ini and uncomment the line (if it is php5 with linux):

;extension=php_curl.dll

If it's windows:

;extension=curl.so

If it is PHP7.2 (windows and linux):

;extension=curl
    
05.02.2018 / 21:37