- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Stuck in composer
remove exec and shell_exec in php.ini
it's work to me.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Stuck in composer
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Stuck in composer
facing similar issue.. any solution?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Stuck in composer
Yes, I have tried this.
Thanks for sharing here.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Stuck in composer
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Stuck in composer
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: It is the composer. Composer 2.0 doesnt work properly wit...
Perfect worked for me thank you!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: It is the composer. Composer 2.0 doesnt work properly wit...
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: It is the composer. Composer 2.0 doesnt work properly wit...
composer global config http-basic.repo.magento.com <public_key> <private_key>
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Stuck in composer
To remove exec and shell_exec in php.ini, locate the disable_functions directive and add exec, shell_exec to the list. This helps manage server resources. For a site like NetMirror APK, proper server configuration ensures smooth downloads without performance issues.