Step-by-Step Guide Installing Magento 2 on XAMPP Server with Git for Windows - magento source24

Step-by-Step Guide: Installing Magento 2 on XAMPP Server with Git for Windows : - 

Hello magento friends in this blog post i'm share with you to Step-by-Step Guide: Installing Magento 2 on XAMPP Server with Git for Windows. Installing Magento 2 on Windows using XAMPP and Git involves several steps. Here is a general guide to help you get started:-

➤ Install XAMPP:-

Download and install XAMPP from the Apache Friends website: https://www.apachefriends.org/index.html

Run the XAMPP control panel and start the Apache and MySQL services.

➤ Install Git:-

Download and install Git for Windows from the official Git website: https://git-scm.com/download/win

➤ Clone Magento 2 Repository:-

  • Create a directory where you want to install Magento 2. For example, C:\xampp\htdocs\magento2.
  • Open a command prompt or Git Bash and navigate to the directory:

cd C:\xampp\htdocs\magento2

  • Clone the Magento 2 repository using Git:

git clone https://github.com/magento/magento2.git .

➤ Composer Setup:-

cd C:\xampp\htdocs\magento2

  • Install Magento 2 dependencies using Composer:

composer install

➤ Create Magento 2 Database:-

  • Open a web browser and navigate to http://localhost/phpmyadmin/.
  • Create a new database for Magento 2.

➤ Magento 2 Installation:-

  • Open a command prompt or Git Bash and navigate to the Magento 2 directory.:

cd C:\xampp\htdocs\magento2

  • Run the Magento 2 installation command:

php bin/magento setup:install --base-url=http://localhost/magento2/ \

--db-host=localhost --db-name=your_db_name --db-user=your_db_user --db-password=your_db_password \

--admin-firstname=Admin --admin-lastname=User --admin-email=admin@example.com \

--admin-user=admin --admin-password=admin123 --language=en_US \

--currency=USD --timezone=America/New_York --use-rewrites=1

Step-by-Step Guide Installing Magento 2 on XAMPP Server with Git for Windows - magento source24

➤ Apache Configuration:-

  • Open the XAMPP control panel, click on the "Config" button for Apache, and select "httpd.conf".
  • Uncomment the line LoadModule rewrite_module modules/mod_rewrite.so by removing the # at the beginning of the line.
  • Save the changes and restart Apache.

➤ Access Magento 2:-

Open a web browser and navigate to http://localhost/magento2/.

Remember that these steps are a general guideline, and you might encounter issues specific to your environment or versions of the software. Always refer to the official documentation for Magento 2, XAMPP, Git, and Composer for the most up-to-date and accurate instructions.


Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post