3

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 ?

2
  • what is the OS? windows? Commented Jul 8, 2016 at 4:57
  • I use Windows 7 and within it Wamp as a solution Commented Jul 8, 2016 at 14:31

1 Answer 1

10
  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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.