Install Magento 2 in XAMPP with Sample data

Install Magento 2 in XAMPP with Sample data

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
Fig. 01: Install Magento 2 in XAMPP with Sample data

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
Fig. 02: Install Magento 2 in XAMPP with Sample data

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
Fig. 03: Install Magento 2 in XAMPP with Sample data

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
Fig. 04: Install Magento 2 in XAMPP with Sample data

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
Fig. 05: Install Magento 2 in XAMPP with Sample data

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
Fig. 06: Install Magento 2 in XAMPP with Sample data

Any incompatibility issues are displayed in the next window.

Install Magento 2 in XAMPP with Sample data 07
Fig. 07: Install Magento 2 in XAMPP with Sample data

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
Fig. 08: Install Magento 2 in XAMPP with Sample data

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
Fig. 09: Install Magento 2 in XAMPP with Sample data

‘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
Fig. 10: Install Magento 2 in XAMPP with Sample data

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
Fig. 11: Install Magento 2 in XAMPP with Sample data

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
Fig. 12: Install Magento 2 in XAMPP with Sample data

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
Fig. 13: Install Magento 2 in XAMPP with Sample data

Enter a Username, email address and password for your Admin backend.

Install Magento2 in XAMPP with Sample data 14
Fig. 14: Install Magento 2 in XAMPP with Sample data

In the next step click on the ‘Install Now’ button.

Install Magento2 in XAMPP with Sample data 15
Fig. 15: Install Magento2 in XAMPP with Sample data

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
Fig. 16: Install Magento2 in XAMPP with Sample data

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

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.