43

I have recently gotten a new windows computer and have installed the php symfony framework.

When attempting to use the new command C:> php symfony new blog I receive the error message [GuzzleHttp\Ring\Exception\RingException] cURL error 60: SSL certificate problem: unable to get local issuer certificate.

I am clueless on what to do in this instance as I am not too experienced with the CMD interface.

I need to know if this is an error with windows or with symfony itself and any possible routes I could take in fixing it.

Doliveras
  • 1,794
  • 2
  • 14
  • 30
colin rickels
  • 659
  • 2
  • 6
  • 9

3 Answers3

83

Follow this link, Copy the entire page and save it in a: "cacert.pem"

Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathtothisfile]\cacert.pem"

Or

use composer instead Symfony installer

Daniel Stenberg
  • 54,736
  • 17
  • 146
  • 222
Mokhtar Tlili
  • 939
  • 7
  • 6
  • I tried copying the .pem page in and was unsuccessful but with symfony everything had turned out A OK! – colin rickels Jun 24 '16 at 18:10
  • 8
    Composer is better solution for installing the `Symfony`. Just use the command `composer create-project symfony/framework-standard-edition my_project_name "2.7.*"` and you can successfully installed the Symfony. – Kushal Suthar Jun 30 '16 at 11:33
  • 1
    composer ended up working thank you! I'll be resulting to composer for most tasks for now on! – colin rickels Jul 18 '16 at 15:09
  • @kushalsuthar Your answer helped me finally "install" the damn thing. Where can a reference to that be found on their website, all I can see is some skeleton bull (create-project symfony/skeleton blabla I am not gonna work) that again does not work (your way is the only way that works for me) ? – Vojislav Kovacevic Jul 16 '17 at 18:00
4

I had the same error with the php version 7.0.10

The mistake I did was that I copyied the certificate (cacert.pem) in the wrong php.ini file. I mean, I have 3 type of ini file: php-development.ini, php-production.ini and php.ini

and the right one was php.ini

Make sure you put the path of the certificate in the right one.

And it will work ! ;) lovely symfony <3

FH

vladkras
  • 16,483
  • 4
  • 45
  • 55
3

you can try the the command line below,it's worked for me

composer create-project symfony/framework-standard-edition my_project_name "2.8.*"
J Ha
  • 1,202
  • 13
  • 16