Create a new project in Symfony 3: Error creating resource: Failed to enable crypto

0

I want to create a new symfony project but I find a problem when I use the command php symfony.phar new Symfony

I used Ubuntu 16.04

/var/www$ php symfony.phar new Symfony



  [GuzzleHttp\Exception\RequestException]                                      
  Error creating resource: [message] fopen(): Failed to enable crypto          
  [file] phar:///var/www/symfony.phar/vendor/guzzlehttp/ringphp/src/Client/St  
  reamHandler.php                                                              
  [line] 406                                                                   
  [message] fopen(https://get.symfony.com/symfony.version): failed to open st  
  ream: operation failed                                                       
  [file] phar:///var/www/symfony.phar/vendor/guzzlehttp/ringphp/src/Client/St  
  reamHandler.php                                                              
  [line] 406                                                                   
  [message] Undefined variable: http_response_header                           
  [file] phar:///var/www/symfony.phar/vendor/guzzlehttp/ringphp/src/Client/St  
  reamHandler.php                                                              
  [line] 407                                                                   






  [GuzzleHttp\Ring\Exception\RingException]                                    
  Error creating resource: [message] fopen(): Failed to enable crypto          
  [file] phar:///var/www/symfony.phar/vendor/guzzlehttp/ringphp/src/Client/St  
  reamHandler.php                                                              
  [line] 406                                                                   
  [message] fopen(https://get.symfony.com/symfony.version): failed to open st  
  ream: operation failed                                                       
  [file] phar:///var/www/symfony.phar/vendor/guzzlehttp/ringphp/src/Client/St  
  reamHandler.php                                                              
  [line] 406                                                                   
  [message] Undefined variable: http_response_header                           
  [file] phar:///var/www/symfony.phar/vendor/guzzlehttp/ringphp/src/Client/St  
  reamHandler.php                                                              
  [line] 407                                                                   

Tell me a person modify the read-only file /etc/php.ini and download the following line

;extension=php_openssl.dll
    
asked by ThePassenger 22.02.2017 в 19:40
source

1 answer

0

It's this: we must modify the read-only file /etc/php.ini and decompose the following line

;extension=php_openssl.dll

Tadam!

    
answered by 22.02.2017 / 20:33
source