cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4.7 fresh download using composer getting error

Magento 2.4.7 fresh download using composer getting error

I am try to install magento 2 in Xampp Windows platform, I am getting the following error when i try to run the following command,
 
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.7 m2
Getting the following error, 

error.png

How do we solve this issue?

2 REPLIES 2

Re: Magento 2.4.7 fresh download using composer getting error

Hey Jeeva,

 

You need a list of php extensions enabled for this installation.

 

Go to {{path}}>Xampp>PHP>PHP.ini and search for "gd" and simply remove ";" from the front it works as a comment if its there then the extension is disabled. 

Screenshot 2025-01-06 150200.png

Similarly, you will have to enable other required extensions as well. Check and compare from the list below:-

extension=bz2
extension=curl
extension=fileinfo
extension=gd2
extension=gettext
;extension=gmp
extension=intl
;extension=imap
;extension=interbase
;extension=ldap
extension=mbstring
extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
;extension=odbc
;extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=shmop
; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=snmp
extension=soap
extension=sockets
;extension=sodium
;extension=sqlite3
;extension=tidy
;extension=xmlrpc
extension=xsl
extension=php_openssl.dll
extension=php_ftp.dll

Thanks

 

Re: Magento 2.4.7 fresh download using composer getting error

The error you're facing when running composer create-project for Magento 2.4.7 on XAMPP is likely due to an issue with Composer credentials or server compatibility. Here’s how you can fix it:

  1. Check Authentication Credentials: Ensure you’ve set up your Magento Marketplace authentication keys in Composer. Use:

    bash
    Copy code
    composer config --global http-basic.repo.magento.com <public_key> <private_key>

    Replace <public_key> and <private_key> with your Magento Marketplace keys.

  2. Update Composer: Run composer self-update to ensure you’re using the latest version.

  3. Check PHP Version: Magento 2.4.7 requires a compatible PHP version. Verify your XAMPP PHP setup matches Magento's requirements.

  4. Verify System Requirements: Ensure all required PHP extensions are enabled in XAMPP (ext-intl, ext-mbstring, ext-soap, etc.).

If you're looking to simplify the process and avoid configuration headaches, consider managed Magento hosting, which offers pre-configured environments tailored for Magento installations. This can save time and ensure optimal performance.

Avid learner and technical marketer at devrims.com