Error installing php composer.phar

I am new to php and rabbitmq. On Debian I have installed composer.phar in / bin direcoty. Now I want to run below command to get specific dependencies for local project.

php composer.phar install

      

But it throws an error using a red background like below

  [Composer\Downloader\TransportException]                                     
  The "https://packagist.org/packages.json" file could not be downloaded: SSL  
   operation failed with code 1. OpenSSL Error messages:                       
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify   
  failed                                                                       
  Failed to enable crypto                                                      
  failed to open stream: operation failed  

      

Please help what to do? when enable openSSL in php.ini it gives warning

Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0

      

+3


source to share


1 answer


You need to enable openssl, otherwise you won't be able to connect to ssl.

You can do this in your php.ini if ​​it is already installed. Otherwise, you must install it first.



Perhaps as another solution, install the php5-cli version using openssl and don't use the lampp stack. You can install the command with apt-get install php5-cli php5-openssl

. Then you have to use the inner package and it should work.

+2


source







All Articles