Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error on php composer.phar install

I m new to php and rabbitmq.In Debian I have installed composer.phar in /bin direcoty. Now I want to run below command to fetch the defined dependencies for local project.

php composer.phar install

But it throws an error message using red background as 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 throws below 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
like image 600
Prak Avatar asked May 19 '26 18:05

Prak


1 Answers

You have to enable openssl otherwise you can't make a ssl connection.

You can do that in your php.ini if its already installed. Otherwise you have to install it first.

Perhaps as another solution install the php5-cli version with openssl and don't use the lampp stack. You can install the command with apt-get install php5-cli php5-openssl. Then you should use the internal package and it should work.

like image 74
René Höhle Avatar answered May 22 '26 08:05

René Höhle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!