{"id":403,"date":"2019-05-03T05:25:40","date_gmt":"2019-05-03T05:25:40","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/05\/03\/install-magento-2-on-localhost-using-xampp\/"},"modified":"2025-07-24T14:34:35","modified_gmt":"2025-07-24T09:04:35","slug":"install-magento-2-on-localhost-using-xampp","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/install-magento-2-on-localhost-using-xampp\/","title":{"rendered":"How to Install Magento 2 on Localhost Using XAMPP"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/magento-2-4-8\/\">Magento 2.4.8<\/a>&nbsp;comes with excellent features with better performance, security and much more!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Did you <a title=\"Download Magento 2 With Sample Data | All Versions\" href=\"https:\/\/meetanshi.com\/blog\/download-magento\/\" target=\"_blank\" rel=\"noopener noreferrer\">download latest Magento version<\/a> yet?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Such features can be availed with the installation of Magento 2! However, the process ain&#8217;t easy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No worries, here&#8217;s the stepwise method to install Magento 2 on localhost using XAMPP, which can guide even a newbie to install the <a href=\"https:\/\/meetanshi.com\/blog\/magento-2-4-8\/\">latest Magento 2.4.8<\/a>!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the <a href=\"https:\/\/meetanshi.com\/blog\/magento-2-system-requirements\/\" target=\"_blank\" rel=\"noreferrer noopener\">system requirements<\/a> before installing the latest Magento 2 version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Install Magento 2 on LocalHost Using XAMPP:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. <a href=\"https:\/\/www.apachefriends.org\/download.html\" target=\"_blank\" rel=\"noreferrer noopener\">Download XAMPP<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Download <strong>Magento setup<\/strong> from our blog on <a href=\"https:\/\/meetanshi.com\/blog\/download-magento\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download Magento 2<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/05\/magento_2_download-1.png\" alt=\"Magento 2 setup download\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3. Navigate to <strong>xampp\/htdocs<\/strong> and create <strong>magento<\/strong> directory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/2_create-magento-in-htdocs.png\" alt=\"create magento in htdocs\" class=\"wp-image-5041\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4. Extract the <strong>Magento 2.3.1<\/strong>&nbsp;archive in <strong>xampp\/htdocs\/magento.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. Open your <strong>XAMPP Control Panel<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/3_Xampp-control-panel.png\" alt=\"Xampp control panel\" class=\"wp-image-5042\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6. Click on Apache\u2019s<strong>&nbsp;Config<\/strong>&nbsp;and go to&nbsp;<strong><strong>PHP (php.ini)<\/strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Search for <strong>extension=php_intl.dll<\/strong>&nbsp;and <strong>extension=php_xsl.dll<\/strong>, and remove the semicolon <strong>\u201c;\u201d&nbsp;<\/strong>at the beginning from both.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/5_extension_php_intl_dll.png\" alt=\"extension php intl dll\" class=\"wp-image-5044\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/6_extension_php_xsl_dll.png\" alt=\"extension php intl dll\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">8. Start the Apache and MySQL services from XAMPP control panel.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/7_Start-apache-and-MySQL-service-for-XAMPP-Control-panel.png\" alt=\"XAMPP control panel\" class=\"wp-image-5047\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Your screen would be as below once you\u2019ve started it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/8_Started-the-Apache-and-MySQL-services-from-XAMPP-control-panel..png\" alt=\"XAMPP control panel\" class=\"wp-image-5046\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">9. Moving forward to Magento installation on XAMPP server, go to <strong>phpMyAdmin <\/strong>and create a database with the name <strong>magento2<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/9_create-database-1024x546.png\" alt=\"create database\" class=\"wp-image-5048\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">11. Open the web browser and explore <strong>localhost\/magento<\/strong>. Click on <strong>Agree and Setup Magento<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">12. Implement the first step on installation &#8220;<strong>Readiness Check<\/strong>&#8221; as shown below and click &#8220;<strong>Next<\/strong>&#8220;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/10_readiness-check.png\" alt=\"Readiness Check\" class=\"wp-image-5049\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">12. In the &#8220;<strong>Add Database<\/strong>&#8221; step, enter the database details such as server host, username, password (<a href=\"https:\/\/meetanshi.com\/free-tools\">establish a strong password<\/a>), name and click &#8220;<strong>Next<\/strong>&#8220;. as shown in the figure.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/11_add-database.png\" alt=\"Add Database\" class=\"wp-image-5050\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">13. In &#8220;<strong>Web Configuration<\/strong>&#8221; step, enter the store and Magento admin address. Click &#8220;<strong>Next<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/12_web-configuration.png\" alt=\"web configuration\" class=\"wp-image-5051\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">14. In the &#8220;<strong>Customize Your Store<\/strong>&#8221; step, enter the details such as time zone, currency, language and click &#8220;<strong>Next<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/13_customize-your-store.png\" alt=\"customize your store\" class=\"wp-image-5052\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">15. In the &#8220;<strong>Create Account<\/strong> &#8221; step, configure the username, email, and password. Click &#8220;<strong>Next<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/14_create-admin-acount.png\" alt=\"create admin acount\" class=\"wp-image-5053\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">16. Finally, the &#8220;Install&#8221; step, hit &#8220;<strong>Install Now<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/15_Install-Now.png\" alt=\"Install Now\" class=\"wp-image-5054\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">17. The process may take a while and you&#8217;d be kept awaited with this screen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/16_install-process.png\" alt=\"install process\" class=\"wp-image-5055\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">18. Once the process is completed, &#8220;<strong>Agree and Setup Magento<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/17_magento-installation-1024x549.png\" alt=\"Agree and Setup Magento\" class=\"wp-image-5056\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">19. Check the <strong>success message<\/strong> such as:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/18_Magento-Install-Success.png\" alt=\"Magento Install Success\" class=\"wp-image-5057\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">20. Open <strong>localhost\/magento <\/strong>in the browser to see the following:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/19_Magento-localhost-frontend.png\" alt=\"localhost magento\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">21. Check <strong>localhost\/magento\/admin<\/strong> as below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/20_Magento-Admin-Panel-1024x569.png\" alt=\"Magento Admin Panel\" class=\"wp-image-5059\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you see a blank admin page after implementing the above steps, check our blog post on <a href=\"https:\/\/meetanshi.com\/blog\/solved-magento-2-2-7-and-2-3-admin-page-blank-issue\/\" target=\"_blank\" rel=\"noreferrer noopener\">Solved: admin page blank issue<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Best Wishes For Your Magento 2 Journey  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2.4.8&nbsp;comes with excellent features with better performance, security and much more! Did you download latest Magento version yet? Such features can be availed with&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-403","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=403"}],"version-history":[{"count":6,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":18865,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/403\/revisions\/18865"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}