How to Install Magento 2 on Localhost Using XAMPP
Magento 2.4.6 comes with excellent features with better performance, security and much more!
Did you download latest Magento version 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, which can guide even a newbie to install the latest Magento 2.4.6!
Check the system requirements before installing the latest Magento 2 version.
Steps to Install Magento 2 on LocalHost Using XAMPP:
- Download XAMPP
- Download Magento setup from our blog on Download Magento 2.
- Navigate to xampp/htdocs and create magento directory.
- Extract the Magento 2.3.1 archive in xampp/htdocs/magento.
- Open your XAMPP Control Panel.
- Click on Apache’s Config and go to PHP (php.ini)
- Search for extension=php_intl.dll and extension=php_xsl.dll, and remove the semicolon “;” at the beginning from both.
- Start the Apache and MySQL services from XAMPP control panel.Your screen would be as below once you’ve started it.
- Moving forward to Magento installation on XAMPP server, go to phpMyAdmin and create a database with the name magento2.
- Open the web browser and explore localhost/magento. Click on Agree and Setup Magento.
- Implement the first step on installation “Readiness Check” as shown below and click “Next“.
- In the “Add Database” step, enter the database details such as server host, username, password (establish a strong password), name and click “Next“. as shown in the figure.
- In “Web Configuration” step, enter the store and Magento admin address. Click “Next“
- In the “Customize Your Store” step, enter the details such as time zone, currency, language and click “Next“
- In the “Create Account ” step, configure the username, email, and password. Click “Next“
- Finally, the “Install” step, hit “Install Now“
- The process may take a while and you’d be kept awaited with this screen:
- Once the process is completed, “Agree and Setup Magento“
- Check the success message such as:
- Open localhost/magento in the browser to see the following:
- Check localhost/magento/admin as below:
If you see a blank admin page after implementing the above steps, check our blog post on Solved: admin page blank issue.
The Magento 2 installation may be a bit complicated for 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 😃
Related Post:
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
17 Comments
Hello. Please after creating your e-commerce how do you deploy it to an online server.?
Hello,
Take the database and file backup and place it in the root. Import database.
Change the database related information in the app/etc/env.php file
Change the URL stored in the database ma core_config_data table.
That’s it.
Thank you.
run but not show icons on tamplet
https://prnt.sc/u4w4r8
Hello,
This issue is not related to the above blog. However, you can try this command for the solution:
php bin/magento setup:static-content:deploy -f
Thank you.
Hello Team,
Facing this issue after fixing up the Magento Admin page issue
https://prnt.sc/s3o58k
Please Help
Hello Parul,
The issue is that CSS is not loading.
Please run the below commands:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean
Thanks
Thanks a Ton Sanjay For your help.
This Works Perfectly Now
Hey! Happy to help.
Thank you for the appreciation 🙂
Mr Sanjay,
Actually i am beginner to Magento and would love to learn magneto myself.
Is there any online tutorial you can recommend me so that i can improve myself?
Also would like to do the certification once i’ll polish myself.
Need your Valuable Guidance.
Thanks In advance
Hello,
It is good that you want to learn Magento.
You can follow our blog posts as well as official Magento Devdocs.
Best of luck!
I can’t run the mangento after success installed
https://media.discordapp.net/attachments/667314002661081088/667314062367129601/mangento.JPG?width=865&height=616
https://cdn.discordapp.com/attachments/667314002661081088/667315574522773511/unknown.png here this isssues
http://prntscr.com/qi7wis
after magento 2 install
i am getting this issue, please help me ……………….
Hi Ghanshyam,
First of all, follow https://meetanshi.com/blog/solved-magento-2-2-7-and-2-3-admin-page-blank-issue/ and run below commands:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean
Wow. Thanks for this guide. This my first attempt at a Magento store. I have a problem that I can’t locate the extension extension=php_intl.dll and extension=php_xsl.dll. Can you advise?
Hello
You need to install php_intl.dll
Please refer https://stackoverflow.com/questions/1451468/intl-extension-installing-php-intl-dll