So I have tried all morning to install composer so I can start to use the laravel framework.
I am running windows server r2 standard 64bit with XAMPP on php 7.0
When running the Composer-Setup.exe I get the following message..
The "https://getcomposer.org/versions" 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
I have scoured the net, and in most cases, the issue that I seem to be having is specifying a cacert.pem file..
So I followed instructions to download the cert from - https://curl.haxx.se/ca/cacert.pem
I simply made a .txt file, copied the content into it from the above link and renamed the file so it was cacert.pem file.
Then specified the .pem file inside the php.ini
openssl.cafile=C:\cacert.pem
Restard apache then re ran the setup.
After running it again, I get exactly the same error about ssl operation failed with code 1.
Hopefully someone can see what I am doing wrong here?
2 Answers
Answers 1
- Are you running the latest version of Composer?
- Try to turn off HTTP proxy (if you have one).
- Read a ticket with the same problem to get more inspiration, if 1 & 2 did not help.
Answers 2
Why don't you try the Laragon package https://laragon.org/download.html is all in one solution for developing in Laravel. Has everything you need and its free. or try the following in the terminal:
echo "<?php echo file_get_contents('https://getcomposer.org/composer.phar') ?>" | php > composer.phar
0 comments:
Post a Comment