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 

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

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

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

Step 2 – Unzip the downloaded zip file.

After downloading the Magento 2 zip file, copy it to C:\xampp\htdocs (default XAMPP www root directory)
 
Right click on the Magento 2 Zip file. Click on 7-zip -> Extract Here

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

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

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

Any incompatibility issues are displayed in the next window.

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

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

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

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

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

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

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

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

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

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

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

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

Share it with your Friends

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.