How to download and Install Magento 2 in XAMPP with Sample data
In this article, let’s see how to download and install Magento 2 Open Source along with sample data on your local XAMPP server development environment.
Magento is one of the leading eCommerce platforms used for building an online store. It is a high performance, scalable solution with powerful out of the box functionality and a large community built around it that continues to add new features.
Things needed:
XAMPP local development server
Magento 2 Open Source
7z zip software
In the XAMPP control panel, click on Start next to Apache and MySQL
![Install Magento 2 in XAMPP with Sample data 01](https://justithosting.com/wp-content/uploads/2021/05/01-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
Step – 1 Create a Database
Open up your favourite browser (Google Chrome or Mozilla Firefox) and browse to http://localhost/phpmyadmin
Click on the New button on the left hand side as shown in the following figure.
![Install Magento 2 in XAMPP with Sample data 02](https://justithosting.com/wp-content/uploads/2021/05/02-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
Next enter a suitable name for your database and please make a note of it we will this information in the consecutive steps. Since this is a local development environment the default Database Username is root and the Database password field will be left empty.
![Install Magento 2 in XAMPP with Sample data 03](https://justithosting.com/wp-content/uploads/2021/05/03-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
Step 2 – Unzip the downloaded zip file.
After downloading the Magento2 zip file, copy it to C:xampphtdocs (default XAMPP www root directory)
Right click on the Magento2 Zip file. Click on 7-zip -> Extract Here
![Install Magento 2 in XAMPP with Sample data 04](https://justithosting.com/wp-content/uploads/2021/05/04-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
Step – 3 Install Magento 2
Open up your favourite browser (Google Chrome or Mozilla Firefox) and browse to http://localhost/
The Welcome screen of the Magento installation script is displayed. Click on Agree and Setup Magento.
![Install Magento2 in XAMPP with Sample data 05](https://justithosting.com/wp-content/uploads/2021/05/05-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
A basic test is performed to check the correct PHP version, PHP extensions, file permissions and compatibility – click on ‘Start Readiness Check’
![Install Magento 2 in XAMPP with Sample data 06](https://justithosting.com/wp-content/uploads/2021/05/06-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
Any incompatibility issues are displayed in the next window.
![Install Magento 2 in XAMPP with Sample data 07](https://justithosting.com/wp-content/uploads/2021/05/07-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
To remove the displayed errors go back to your XAMPP control panel. Click on the ‘Config’ button next to Apache and click on php.ini
![Install Magento2 in XAMPP with Sample data 08](https://justithosting.com/wp-content/uploads/2021/05/08-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
Remove the semicolon (;) next to
extension=php_intl.dll
extension=php_soap.dll
extension=php_xsl.dll
as shown in the following figure. After the changes have been performed click on File -> Save.
![Install Magento2 in XAMPP with Sample data 09](https://justithosting.com/wp-content/uploads/2021/05/09-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
‘Try Again’
Back in the installation script window, click on the ‘Try Again’ button. If all the tests are completed successfully, click on the ‘Next’ button.
![Install Magento 2 in XAMPP with Sample data 10](https://justithosting.com/wp-content/uploads/2021/05/10-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
In the ‘Add a Database’ window enter all the information regarding your database as shown in the figure and click on Next.
![Install Magento2 in XAMPP with Sample data 11](https://justithosting.com/wp-content/uploads/2021/05/11-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
In the ‘Web Configuration’ window check your Store address and note down the Magento Admin backend address. In the Advanced Options select the options as shown in the figure.
![Install Magento2 in XAMPP with Sample data 12](https://justithosting.com/wp-content/uploads/2021/05/12-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
In the ‘Customize your Store’ window select the default Time Zone, Currency and Language. Under Advanced Modules Configuration click on ‘Select All’ and click on ‘Next’.
![Install Magento2 in XAMPP with Sample data 13](https://justithosting.com/wp-content/uploads/2021/05/13-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
Enter a Username, email address and password for your Admin backend.
![Install Magento2 in XAMPP with Sample data 14](https://justithosting.com/wp-content/uploads/2021/05/14-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
In the next step click on the ‘Install Now’ button.
![Install Magento2 in XAMPP with Sample data 15](https://justithosting.com/wp-content/uploads/2021/05/15-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
After the installation has been successfully completed, you can access your website using the following address http://localhost/.
The backend admin centre can be accessed using the link shown in Fig. 12
The completed Magento 2 store with sample data
![Install Magento2 in XAMPP with Sample data 16](https://justithosting.com/wp-content/uploads/2021/05/16-Install-Magento-2-in-XAMPP-with-Sample-data.jpg)
Please follow our Blog on Feedly for all the latest information. If you need more help, please call our Support Department at (480) 624-2500. We are available 24/7. You can also use our Email support system for any queries. Just IT Hosting.