How to Install Magento Open Source on Windows 10
Magento Open Source is a powerful e-commerce platform. In this tutorial, we will guide you on how to install Magento Open Source on Windows 10 by using XAMPP.
Prerequisites
Before you start the installation process, make sure that you have the following software installed on your system:
- XAMPP
- PHP version 7.2 or greater
- Composer
- Git
Step 1. Download Magento Open Source
The first step is to download the latest version of Magento Open Source from the GitHub repository.
- Open your browser and go to https://github.com/magento/magento2.
- Click the "Code" button and select "Download ZIP".
- Save the file to a folder on your computer.
Step 2. Install XAMPP
XAMPP is a cross-platform web server solution stack that includes Apache, MySQL, PHP, and Perl.
- Download XAMPP from https://www.apachefriends.org/download.html.
- Install XAMPP with the default settings.
Step 3. Install Composer
Composer is used to manage Magento Open Source's dependencies.
- Open your browser and go to https://getcomposer.org/download/.
- Download the Composer-Setup.exe file.
- Double-click the installer and follow the instructions.
Step 4. Install Git
Git is a version control system that is used to manage Magento Open Source's source code.
- Download Git from https://git-scm.com/downloads.
- Install Git with the default settings.
Step 5. Install Magento Open Source
Now that you have installed all the prerequisites, you can start the installation process.
- Extract the Magento Open Source ZIP file that you downloaded earlier.
- Copy the extracted folder to the htdocs folder in your XAMPP installation directory. For example, if you installed XAMPP in the C:\xampp folder, copy the extracted folder to C:\xampp\htdocs.
- Open a command prompt window and navigate to the Magento Open Source folder.
- Run the following command to install Magento Open Source:
composer install
- After the installation process is complete, run the following command:
php bin/magento setup:install --base-url=http://localhost/magento2/ --db-host=localhost --db-name=magento --db-user=root --db-password= --admin-firstname=admin --admin-lastname=admin [email protected] --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1 --backend-frontname=admin
- Wait for the installation process to complete.
- Open your browser and go to http://localhost/magento2/.
- If you see the Magento Open Source home page, the installation process is complete.
Conclusion
Congratulations! You have successfully installed Magento Open Source on Windows 10. You can now start customizing your e-commerce website.