Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GuzzleHttp\Exception\RequestException when creating a project with symfony 2.8 framework

Tags:

php

symfony

First of all i created the symfony file through the following cmd :

php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"

After that, i performed the following command to create a symfony project :

php symfony new my_project 2.8

The result :

[GuzzleHttp\Exception\RequestException] cURL error 60: SSL certificate problem: unable to get local issuer certificate

So, is there a solution to this problem ?

like image 535
WebMozarts Avatar asked Feb 15 '26 02:02

WebMozarts


1 Answers

  1. Download cacert.pem file from here: http://curl.haxx.se/docs/caextract.html
  2. Save the file in your PHP installation folder. ( ex D:\wamp\php\cacert.pem).
  3. Open your php.ini file and add this line: curl.cainfo="D:\wamp\php\cacert.pem"
  4. Restart your Apache server
like image 61
Denis Alimov Avatar answered Feb 17 '26 16:02

Denis Alimov



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!