How to Install Magento 2 on Localhost Using XAMPP

Magento 2.3.2 comes with excellent features like GraphQL, shipping and core payment methods improvements, Php 7.3.x support, and much more!

Did you download Magento 2.3.1 yet?

Such features can be availed with the installation of Magento 2! However, the process ain’t easy.

No worries, here’s the stepwise method to install Magento 2 on localhost using XAMPP, that can guide even a newbie to install the latest Magento 2.3.1!

Check the system requirements before installing the latest Magento 2 version.

Steps to Install Magento 2 on LocalHost Using XAMPP:

  1. Download XAMPP
  2. Download Magento 2.3.1 setup from the Magento Official website.1_Magento 2 setup download
  3. Navigate to xampp/htdocs and create magento directory.2_create magento in htdocs
  4. Extract the Magento 2.3.1 archive in xampp/htdocs/magento.
  5. Open your XAMPP Control Panel.3_Xampp control panel
  6. Click on Apache’s Config and go to PHP (php.ini)4_apache config php_ani
  7. Search for extension=php_intl.dll and extension=php_xsl.dll, and remove the semicolon “;” at the beginning from both.5_extension_php_intl_dllHow to Install Magento 2 on Localhost Using XAMPP 1
  8. Start the Apache and MySQL services from XAMPP control panel.7_Start apache and MySQL service for XAMPP Control panelYour screen would be as below once you’ve started it.8_Started the Apache and MySQL services from XAMPP control panel.
  9. Moving forward to Magento installation on XAMPP server, go to phpMyAdmin and create a database with the name magento2.9_create database
  10. Open the web browser and explore localhost/magento. Click on Agree and Setup Magento.
  11. Implement the first step on installation “Readiness Check” as shown below and click “Next“.10_readiness check
  12. In the “Add Database” step, enter the database details such as server host, username, password, name and click “Next“. as shown in the figure.11_add database
  13. In “Web Configuration” step, enter the store and Magento admin address. Click “Next12_web configuration
  14. In the “Customize Your Store” step, enter the details such as time zone, currency, language and click “Next13_customize your store
  15. In the “Create Account ” step, configure the username, email, and password. Click “Next14_create admin acount
  16. Finally, the “Install” step, hit “Install Now15_Install Now
  17. The process may take a while and you’d be kept awaited with this screen:16_install process
  18. Once the process is completed, “Agree and Setup Magento17_magento installation
  19. Check the success message such as:18_Magento Install Success
  20. Open localhost/magento in the browser to see the following:How to Install Magento 2 on Localhost Using XAMPP 2
  21. Check localhost/magento/admin as below:20_Magento Admin Panel

If you see blank admin page after implementing the above steps, check here.

The Magento 2 installation may be a bit complicated for the newcomers but don’t hesitate to post your doubts in the Comments section below and I’d be happy to help you out 🙂

Do rate the post with 5 stars.

Best Wishes For Your Magento 2 Journey 😃

(based on 31 Reviews)
How to Install Magento 2 on Localhost Using XAMPPAuthor Magento Badge

Sanjay Jethva

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.


Leave a Reply

Your email address will not be published.