remove exec and shell_exec in php.ini
it's work to me.
Create a auth.json file on root of your project with following code:
{ "http-basic": { "repo.magento.com": { "username":"<public-key>", "password": "<private-key>" } } }
Replace your public and private keys in double quotes without arrow signs. That should work.
facing similar issue.. any solution?
Yes, I have tried this.
Thanks for sharing here.
Hi,
Check your php and composer versions. Only use recommended php version
It could be simply a PHP configuration issue. So use the correct php ini or opcache ini
Also try adding your auth.json to your composer location.
auth.json should have below. Make sure to have github token too
{
"http-basic": {
"repo.magento.com": {
"username": "<token user>",
"password": "<token pass>"
}
},
"github-oauth": {
"github.com": "<valid github token>"
}
}
I run docker-compose so I add my auth.json to my local composer location
COPY composer/auth.json /var/www/.config/composer/auth.json
Perfect worked for me thank you!
The documentation on authenticating (even for community editions) is shocking.
Nowhere does it explain how to configure the public/private key pairs for Composer.
Thanks to the suggestions here I was able to install community edition on an Ubuntu server after updating my `auth.json`.
It's honestly embarrassing how poor the documentation is.
composer global config http-basic.repo.magento.com <public_key> <private_key>