{"id":53533,"date":"2023-07-24T15:42:24","date_gmt":"2023-07-24T15:42:24","guid":{"rendered":"https:\/\/devrims.com\/?p=53533"},"modified":"2025-03-25T12:54:27","modified_gmt":"2025-03-25T07:54:27","slug":"how-to-install-magento-2-localhost-xampp","status":"publish","type":"post","link":"https:\/\/devrims.com\/blog\/how-to-install-magento-2-localhost-xampp\/","title":{"rendered":"How to Install and Setup Magento 2 on Localhost using XAMPP Server? (Step-by-Step Guide)"},"content":{"rendered":"\r\n\r\n\r\n\r\n\r\n\r\n\n<p>Are you ready to set up Magento 2 on your localhost using the XAMPP server but unsure where to start? Whether you&#8217;re new to Magento or an experienced developer looking for a quicker installation process, this step-by-step guide is for you. Installing Magento 2 with XAMPP gives you a local testing environment where you can experiment and fine-tune your store without affecting your live site.<\/p>\n\n\n\n<p>In this guide, we&#8217;ll show you how to use Composer to install Magento 2 on localhost. Composer helps manage dependencies and libraries, making the installation process faster and easier. By the end, you&#8217;ll have Magento 2 running smoothly on the XAMPP server, ready for development, testing, and optimization.<\/p>\n\n\n\n<p>Let\u2019s get started and set up your local Magento store so everything works perfectly before going live!<\/p>\n\n\n        <div class=\"cta-banner magento mb-3\" style=\"background-image: url(https:\/\/devrims.com\/blog\/wp-content\/uploads\/2025\/02\/Magento-CTA-BG.png);\">\r\n            <div class=\"container\">\r\n\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t<h2>Is <span class='bg-color'>Downtime<\/span> and Slow Speed Hurting Your Sales?<\/h2>\r\n\t\t\t\t\t\t<p>Enjoy 99.9% uptime with the most advanced LiteSpeed Hosting, powered by top cloud partners AWS and DigitalOcean.\r\n<\/p>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<div class=\"cta-btn-wrapper\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/user.devrims.com\/signup?utm_source=Blogs&#038;utm_medium=CTAs&#038;utm_campaign=Conversions\" target=\"_blank\" class=\"btn btn-primary\">Avail 3-days Free Trial Now!<\/a>\r\n\t\t\t\t\t\t\t<span class=\"cta-btn-bottom-title\">No Credit Card Required<\/span>\r\n\t\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t\t:has(.DevOps) .cta-btn-bottom-title{\r\n\t\t\t\t\t\t\t\t\tdisplay: none;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t<\/style>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-5\">\r\n\t\t\t\t\t\t<div class=\"cloud-partner-wrapper\">\r\n\t\t\t\t\t\t\t<!-- <h3>Cloud Partners<\/h3> -->\r\n\t\t\t\t\t\t\t<div class=\"cloud-partners-images\">\r\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2025\/02\/image-2.svg\" class=\"Magento1\" alt=\"\">\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n        <\/div>\r\n        \n\n\n\n<h2 id='why-do-you-need-to-install-magento-2-on-localhost'  id=\"boomdevs_1\" class=\"wp-block-heading\">Why Do You Need to Install Magento 2 on Localhost?<\/h2>\n\n\n\n<p>Regarding designers and developers, it&#8217;s always a good idea to set up Magento 2 on Localhost. Here are a few use cases for creating a Magneto 2 setup on your Windows machine:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If a new version, feature, or safe patch is launched, you can create a test environment to check if it&#8217;s stable enough for your websites.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sometimes, you have to make some changes as per client requirements. If you change a production site (or live website), there&#8217;s a good chance that something might not work as expected. However, by creating a staging environment on localhost, you can make modifications, test them, and correct any issues. If everything works fine, you can upload it on the live server.<\/li>\n\n\n\n<li>Setting up Magento locally allows you to test and work on different <a href=\"https:\/\/devrims.com\/blog\/which-version-of-magento-should-you-use\/\" target=\"_blank\" rel=\"noreferrer noopener\">versions<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 id='benefits-of-installing-magento-2-on-localhost'  id=\"boomdevs_2\" class=\"wp-block-heading\">Benefits of Installing Magento 2 on Localhost<\/h2>\n\n\n\n<p>Installing Magento 2 on localhost offers several benefits for developers, business owners, and teams working on <a href=\"https:\/\/devrims.com\/blog\/what-is-ecommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">ecommerce<\/a> websites. Here are some of the key advantages:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Cost-Effective<\/strong>: Running Magento 2 on localhost eliminates the need for an expensive <a href=\"https:\/\/devrims.com\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">hosting plan<\/a> and <a href=\"https:\/\/devrims.com\/blog\/magento-development-cost\/\" target=\"_blank\" rel=\"noreferrer noopener\">development cost<\/a>, which is beneficial when starting or testing.<br><\/li>\n\n\n\n<li><strong>Offline Work<\/strong>: With Magento 2 installed locally, you can work offline on your website without an internet connection. This is perfect for remote work or testing.<br><\/li>\n\n\n\n<li><strong>Safe Testing Environment<\/strong>: A localhost setup allows you to test new features, extensions, and configurations without impacting your live website. This way, any issues can be fixed before going public.<br><\/li>\n\n\n\n<li><strong>Risk-Free Customization<\/strong>: Customizing your website locally helps reduce the risk of breaking your live site. You can make, test, and adjust changes safely before applying them to the live version.<br><\/li>\n\n\n\n<li><strong>Improved Performance<\/strong>: Localhost environments run faster than remote servers because there&#8217;s no network delay. This speeds up testing and development.<br><\/li>\n\n\n\n<li><strong>Better Security<\/strong>: Running Magento 2 on localhost keeps your store safe from unauthorized access and hacking attempts, as it\u2019s not exposed to the internet. Follow the <a href=\"https:\/\/devrims.com\/blog\/magento-2-security-12-things-you-should-do\/\" target=\"_blank\" rel=\"noreferrer noopener\">best security tips for the Magento store<\/a>.<br><\/li>\n\n\n\n<li><strong>Easy Backup and Restoration<\/strong>: It\u2019s easy to back up and restore your website on localhost. This is helpful if you need to troubleshoot or recover from any issues.<br><\/li>\n<\/ol>\n\n\n\n<p>Installing Magento 2 on localhost provides a flexible, secure, and cost-effective way to develop and test your e-commerce website before launching it live.<\/p>\n\n\n\n<h2 id='magento-2-installation-requirements'  id=\"boomdevs_3\" class=\"wp-block-heading\">Magento 2 Installation Requirements<\/h2>\n\n\n\n<p>Specific requirements must be met to install Magento 2 on your server successfully. Therefore, before initiating the Magento 2 installation process, ensure your system meets all these requirements.<\/p>\n\n\n\n<p>These are the requirements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Apache\/Ngnix 2.2 or 2.4 version<\/li>\n\n\n\n<li>PHP 7.4.x or 8.1.x version.<\/li>\n\n\n\n<li>MySQL\/MariaDB 5.6.x, 5.7.x, or MariaDB<\/li>\n\n\n\n<li>Elasticsearch 7.6.x or higher<\/li>\n<\/ul>\n\n\n\n<p>Have you heard about the new tech stack powered by the OpenLiteSpeed web server? Learn all about it in this guide on the&nbsp;<a href=\"https:\/\/devrims.com\/blog\/openlitespeed-hosting-update\/\" target=\"_blank\" rel=\"noopener\">LOMP tech stack<\/a>.<\/p>\n\n\n        <div class=\"cta-banner  mb-3\" style=\"background-image: url(https:\/\/devrims.com\/blog\/wp-content\/uploads\/2025\/02\/Magento-CTA-BG.png);\">\r\n            <div class=\"container\">\r\n\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t<h2>Enjoy Unlimited Freedom with Flexible <span class='bg-color'>Pay-As-You-Go<\/span> Billing<\/h2>\r\n\t\t\t\t\t\t<p>We offer 30+ data centers globally and 50+ 1-Click Features without any upfront charges or usage commitment. \r\n<b>Get started with zero upfront costs!<\/b><\/p>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<div class=\"cta-btn-wrapper\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/user.devrims.com\/signup?utm_source=Blogs&#038;utm_medium=CTAs&#038;utm_campaign=Conversions\" target=\"_blank\" class=\"btn btn-primary\">Avail 3-days Free Trial Now!<\/a>\r\n\t\t\t\t\t\t\t<span class=\"cta-btn-bottom-title\">No Credit Card Required<\/span>\r\n\t\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t\t:has(.DevOps) .cta-btn-bottom-title{\r\n\t\t\t\t\t\t\t\t\tdisplay: none;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t<\/style>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-5\">\r\n\t\t\t\t\t\t<div class=\"cloud-partner-wrapper\">\r\n\t\t\t\t\t\t\t<!-- <h3>Cloud Partners<\/h3> -->\r\n\t\t\t\t\t\t\t<div class=\"cloud-partners-images\">\r\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2025\/02\/Magento-Hosting-New-3-Image.svg\" class=\"Magento3\" alt=\"\">\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n        <\/div>\r\n        \n\n\n\n<h2 id='how-to-install-magento-2-on-localhost-via-xampp-server-step-by-step'  id=\"boomdevs_4\" class=\"wp-block-heading\">How to Install Magento 2 on Localhost via XAMPP Server (Step-by-Step)<\/h2>\n\n\n\n<p>Follow all the steps below to install Magento 2 using the XAMPP Server.<\/p>\n\n\n\n<h3 id='install-and-setup-the-xampp-server'  id=\"boomdevs_5\" class=\"wp-block-heading\">Install and Setup the XAMPP Server<\/h3>\n\n\n\n<p>To install and set up the XAMPP Server, follow these instructions.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, you need to download XAMPP software; for that, go to the <a href=\"https:\/\/www.apachefriends.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Apache Friends site<\/a> and download the XAMPP software version compatible with your OS and meets your specific requirements.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"474\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/1-1024x474.webp\" alt=\"XAMPP Download\" class=\"wp-image-68613\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/1-1024x474.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/1-300x139.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/1-768x355.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/1-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/1-36x17.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/1-48x22.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/1.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After downloading it completely, run the software to install it on your system.<\/li>\n\n\n\n<li>Click on the Next button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"425\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/2.webp\" alt=\"Setup - Xampp\" class=\"wp-image-68614\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/2.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/2-300x254.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/2-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/2-36x30.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/2-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Next, go with the default selection shown in the image and click on the Next button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/3.webp\" alt=\"Select Components\" class=\"wp-image-68615\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/3.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/3-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/3-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/3-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/3-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The default location is C:xampp, but you can choose your preferred installation folder. Once you have made your selection, click on &#8216;<strong>Next<\/strong>.&#8217;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/4.webp\" alt=\"Installation Folder\" class=\"wp-image-68616\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/4.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/4-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/4-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/4-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/4-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click the \u2018<strong>Next<\/strong>\u2019 button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/5.webp\" alt=\"Bitnami for XAMPP\" class=\"wp-image-68617\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/5.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/5-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/5-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/5-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/5-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The setup is now ready to install. Please click the &#8216;<strong>Next<\/strong>&#8216; button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/6.webp\" alt=\"Install XAMPP\" class=\"wp-image-68618\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/6.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/6-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/6-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/6-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/6-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Please wait as the setup wizard installs XAMPP on your computer. Once the installation is complete, the setup will be initiated.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/7.webp\" alt=\"Installing XAMPP\" class=\"wp-image-68619\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/7.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/7-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/7-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/7-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/7-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After completing the setup, you will see the following message: &#8220;<strong>Do you want to start the Control Panel now?<\/strong>&#8220;You can proceed by clicking the &#8220;<strong>Finish<\/strong>&#8221; button to exit the setup and access the XAMPP control panel.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"425\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/8.webp\" alt=\"Complete XAMPP Setup\" class=\"wp-image-68620\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/8.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/8-300x254.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/8-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/8-36x30.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/8-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<h3 id='configuring-xampp'  id=\"boomdevs_6\" class=\"wp-block-heading\">Configuring XAMPP<\/h3>\n\n\n\n<p>Follow these steps to configure XAMPP for Magento 2 installation.<\/p>\n\n\n\n<p><strong>Start XAMPP<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Launch the XAMPP control panel.<\/li>\n\n\n\n<li>Start the Apache and MySQL services by clicking the &#8220;<strong>Start<\/strong>&#8221; button next to each service.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"432\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/9-min.webp\" alt=\"XAMPP Control Panel - Start Apache and MySQL Services\" class=\"wp-image-68621\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/9-min.webp 667w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/9-min-300x194.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/9-min-24x16.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/9-min-36x23.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/9-min-48x31.webp 48w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure that the status indicator for both services changes to &#8220;<strong>Running<\/strong>.&#8221;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"434\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/10-min.webp\" alt=\"Running Services\" class=\"wp-image-68622\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/10-min.webp 666w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/10-min-300x195.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/10-min-24x16.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/10-min-36x23.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/10-min-48x31.webp 48w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\n\n\n\n<p>The green indicator means it is running.<\/p>\n\n\n\n<p><strong>Configure PHP<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the &#8220;<strong>Config<\/strong>&#8221; tab in the Apache section of the XAMPP control panel.<\/li>\n\n\n\n<li>Locate the option for the PHP (php.ini) file and open it using a text or code editor.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"544\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/11.webp\" alt=\"PHP Configuration\" class=\"wp-image-68623\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/11.webp 720w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/11-300x227.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/11-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/11-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/11-48x36.webp 48w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Inside the PHP (php.ini) file, find the following options and remove the semicolons before each row:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">;extension=gd\n\n;extension=intl\n\n;extension=soap\n\n;extension=sockets\n\n;extension=sodium\n\n;extension=xsl<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Additionally, extend the memory to 4G by modifying the value of the memory_limit variable:\n<ul class=\"wp-block-list\">\n<li>memory_limit = 4G<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Once you have finished editing the file, save it and close the editor.<\/li>\n\n\n\n<li>Finally, restart both Apache and MySQL services.<\/li>\n\n\n\n<li>Ensure that both options are running correctly.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"430\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/12.webp\" alt=\"Restart Services\" class=\"wp-image-68624\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/12.webp 666w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/12-300x194.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/12-24x15.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/12-36x23.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/12-48x31.webp 48w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\n\n\n\n<p>Let it run.<\/p>\n\n\n\n<h3 id='create-a-database-with-phpmyadmin'  id=\"boomdevs_7\" class=\"wp-block-heading\">Create a database with phpMyAdmin<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To create a database with phpMyAdmin, open your browser and enter\/access the URL <a href=\"http:\/\/localhost\/phpmyadmin\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>http:\/\/localhost\/phpmyadmin<\/strong><\/a>.<\/li>\n\n\n\n<li>Log in to the phpMyAdmin account by entering your username and password.<\/li>\n\n\n\n<li>Go to the database section by clicking on the \u201c<strong>Database<\/strong>\u201d tab.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"476\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/13-1024x476.webp\" alt=\"Create Database with phpMyAdmin\" class=\"wp-image-68625\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/13-1024x476.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/13-300x139.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/13-768x357.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/13-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/13-36x17.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/13-48x22.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/13.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter the database name and click on the Create button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"137\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/14.webp\" alt=\"Database name\" class=\"wp-image-68626\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/14.webp 533w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/14-300x77.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/14-24x6.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/14-36x9.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/14-48x12.webp 48w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a table, enter columns, and click the Go button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"203\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/15-1024x203.webp\" alt=\"Create Table\" class=\"wp-image-68627\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/15-1024x203.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/15-300x59.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/15-768x152.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/15-24x5.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/15-36x7.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/15-48x10.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/15.webp 1116w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The database is created successfully.<\/p>\n\n\n\n<h3 id='download-and-install-composer-for-magento-2'  id=\"boomdevs_8\" class=\"wp-block-heading\">Download and Install Composer for Magento 2<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To download and install Composer for Magento 2, go to <a href=\"https:\/\/getcomposer.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">getcomposer.org<\/a> and download it.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/16-min-1024x472.webp\" alt=\"Download Composer\" class=\"wp-image-68628\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/16-min-1024x472.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/16-min-300x138.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/16-min-768x354.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/16-min-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/16-min-36x17.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/16-min-48x22.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/16-min.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Get the Composer \u2013 setup.exe file.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"468\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/17-1024x468.webp\" alt=\"Composer-Setup.exe\" class=\"wp-image-68629\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/17-1024x468.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/17-300x137.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/17-768x351.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/17-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/17-36x16.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/17-48x22.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/17.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once the file is downloaded, double-click on it or run it.<\/li>\n\n\n\n<li>Select a mode to install. &#8220;<strong>Install for all users<\/strong>&#8221; is recommended, so I chose it here.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"346\" height=\"256\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/18.webp\" alt=\"Select Install Mode\" class=\"wp-image-68630\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/18.webp 346w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/18-300x222.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/18-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/18-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/18-48x36.webp 48w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the Next.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"469\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/19.webp\" alt=\"Installation Options\" class=\"wp-image-68631\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/19.webp 637w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/19-300x221.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/19-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/19-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/19-48x35.webp 48w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Locate the PHP file address in the XAMPP folder and enter the location here. Then, check the \u201c<strong>add this PHP to your path<\/strong>\u201d box and click on the next.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"474\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/20.webp\" alt=\"Settings Check\" class=\"wp-image-68632\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/20.webp 638w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/20-300x223.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/20-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/20-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/20-48x36.webp 48w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It is optional to add a proxy URL so you can skip it and click on the next.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"472\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/22.webp\" alt=\"Proxy Settings\" class=\"wp-image-68634\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/22.webp 636w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/22-300x223.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/22-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/22-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/22-48x36.webp 48w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Last but not least, click on the Install button to complete the final step of the installation process.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"474\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/21.webp\" alt=\"\" class=\"wp-image-68633\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/21.webp 641w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/21-300x222.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/21-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/21-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/21-48x35.webp 48w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the next.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"467\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/23.webp\" alt=\"Information\" class=\"wp-image-68635\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/23.webp 633w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/23-300x221.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/23-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/23-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/23-48x35.webp 48w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Complete the installation by clicking on the Finish button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"475\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/24-min.webp\" alt=\"Complete Composer Setup\" class=\"wp-image-68636\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/24-min.webp 638w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/24-min-300x223.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/24-min-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/24-min-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/24-min-48x36.webp 48w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To ensure that Composer has been installed correctly, launch the Command Prompt. (Learn <a href=\"https:\/\/devrims.com\/blog\/magento-2-cli\/\" target=\"_blank\" rel=\"noreferrer noopener\">how to use Magento 2 CLI terminal<\/a> to manage your online stores.)<\/li>\n\n\n\n<li>Run the Composer command to verify the installation status and check for potential issues.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"513\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/25.webp\" alt=\"Verify Installation - Check Composer Version\" class=\"wp-image-68637\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/25.webp 973w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/25-300x158.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/25-768x405.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/25-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/25-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/25-48x25.webp 48w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/figure>\n\n\n\n<p>Here you go! We have successfully installed the Composer on our system.<\/p>\n\n\n\n<h3 id='download-and-install-elasticsearch-for-magento-2'  id=\"boomdevs_9\" class=\"wp-block-heading\">Download and Install Elasticsearch for Magento 2<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>As it is a prerequisite to installing Elasticsearch on your system for Magento 2 installation, go to <strong><a href=\"https:\/\/www.elastic.co\/downloads\/past-releases\/elasticsearch-7-6-0\" target=\"_blank\" rel=\"noopener\">https:\/\/www.elastic.co\/downloads\/past-releases\/elasticsearch-7-6-0<\/a><\/strong> and download it.<\/li>\n\n\n\n<li>Once you have downloaded the Elasticsearch package on your system, extract it.<\/li>\n\n\n\n<li>Go to the command prompt and navigate to the folder where you have extracted the elastic search file by running the cd command.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\" style=\"padding-top:0;padding-bottom:0\">cd directory-path<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"508\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/26.webp\" alt=\"Navigate to Elasticsearch Folder\" class=\"wp-image-68638\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/26.webp 978w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/26-300x156.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/26-768x399.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/26-24x12.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/26-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/26-48x25.webp 48w\" sizes=\"auto, (max-width: 978px) 100vw, 978px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once you are in the Elasticsearch folder, execute this command to install Elasticsearch on your system.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">.binelasticsearch.bat<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"979\" height=\"512\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/27.webp\" alt=\"Install Elasticsearch\" class=\"wp-image-68639\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/27.webp 979w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/27-300x157.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/27-768x402.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/27-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/27-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/27-48x25.webp 48w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once the execution is done, go to your browser and enter \u201c<strong>local:9200<\/strong>\u201d in the search bar to check the availability of Elasticsearch on port:9200.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"306\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/28.webp\" alt=\"Elasticsearch Port Availability\" class=\"wp-image-68640\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/28.webp 483w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/28-300x190.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/28-24x15.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/28-36x23.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/28-48x30.webp 48w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/figure>\n\n\n\n<p>Congratulations! We have successfully installed Elasticsearch on our system.<\/p>\n\n\n        <div class=\"cta-banner magento mb-3\" style=\"background-image: url(https:\/\/devrims.com\/blog\/wp-content\/uploads\/2025\/02\/Magento-CTA-BG.png);\">\r\n            <div class=\"container\">\r\n\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t<h2>Having trouble Managing your <span class='bg-color'>Magento hosting<\/span>?<\/h2>\r\n\t\t\t\t\t\t<p>Let us handle your hosting\u2014 from security to performance and more so you can focus on development and eCommerce operations.<\/p>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<div class=\"cta-btn-wrapper\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/user.devrims.com\/signup?utm_source=Blogs&#038;utm_medium=CTAs&#038;utm_campaign=Conversions\" target=\"_blank\" class=\"btn btn-primary\">Avail 3-days Free Trial Now!<\/a>\r\n\t\t\t\t\t\t\t<span class=\"cta-btn-bottom-title\">No Credit Card Required<\/span>\r\n\t\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t\t:has(.DevOps) .cta-btn-bottom-title{\r\n\t\t\t\t\t\t\t\t\tdisplay: none;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t<\/style>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-5\">\r\n\t\t\t\t\t\t<div class=\"cloud-partner-wrapper\">\r\n\t\t\t\t\t\t\t<!-- <h3>Cloud Partners<\/h3> -->\r\n\t\t\t\t\t\t\t<div class=\"cloud-partners-images\">\r\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2025\/02\/Magento-Hosting-New-1-Image.svg\" class=\"Magento2\" alt=\"\">\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n        <\/div>\r\n        \n\n\n\n<h3 id='download-and-install-magento-2-using-composer'  id=\"boomdevs_10\" class=\"wp-block-heading\">Download and Install Magento 2 using Composer<\/h3>\n\n\n\n<p>To download Magento 2 using Composer, open the command prompt and navigate to the directory where you want to download your Magento 2 application using the \u201ccd\u201d command. Run the below command to navigate to the desired directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd directory-path<\/pre>\n\n\n\n<p>For example, I want to download the Magento 2 application in the <strong>htdocs &gt; magentoprojects<\/strong> directory of the xampp folder, so I will run this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd C:xampphtdocsmagentoprojects<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"513\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/29.webp\" alt=\"Navigate to Magento 2 Projects Directory\" class=\"wp-image-68641\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/29.webp 980w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/29-300x157.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/29-768x402.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/29-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/29-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/29-48x25.webp 48w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now, run this command to install the Magento 2 application of your required version using Composer.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">composer create-project --repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition=2.4.5<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"515\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/30.webp\" alt=\"Install Magento 2 Application\" class=\"wp-image-68642\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/30.webp 1019w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/30-300x152.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/30-768x388.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/30-24x12.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/30-36x18.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/30-48x24.webp 48w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/figure>\n\n\n\n<p>While running the above command, it will ask for Magento repository authentication, i.e. Username and Password.<\/p>\n\n\n\n<p>You must sign in to your Magento marketplace account and create an access key to get authentication credentials. If you do not have a Magento marketplace account, create one first.<\/p>\n\n\n\n<p>Follow these steps to create an access key and get authentication credentials.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong><a href=\"https:\/\/commercemarketplace.adobe.com\/customer\/account\/\" target=\"_blank\" rel=\"noopener\">https:\/\/commercemarketplace.adobe.com\/customer\/account\/<\/a><\/strong> and navigate to the \u201c<strong>Access Keys<\/strong>\u201d page.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"479\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/31-1024x479.webp\" alt=\"Access Keys\" class=\"wp-image-68643\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/31-1024x479.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/31-300x140.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/31-768x359.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/31-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/31-36x17.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/31-48x22.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/31.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once on the access keys page, click the &#8220;<strong>Create A New Access Key<\/strong>\u201d button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/32-1024x475.webp\" alt=\"Create New Access Key\" class=\"wp-image-68644\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/32-1024x475.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/32-300x139.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/32-768x356.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/32-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/32-36x17.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/32-48x22.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/32.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter a name for the Access Key and click on the \u201c<strong>OK<\/strong>\u201d button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"242\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/33.webp\" alt=\"Key Name\" class=\"wp-image-68645\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/33.webp 414w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/33-300x175.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/33-24x14.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/33-36x21.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/33-48x28.webp 48w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/figure>\n\n\n\n<p>Here you go! The authentication credential has been created.<\/p>\n\n\n\n<p>You can see two keys here &#8220;<strong>Public Key<\/strong>&#8221; and &#8220;<strong>Private Key<\/strong>.&#8221; The public key will be used as a username, and the private key will be used as a password.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"478\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/34-1024x478.webp\" alt=\"Private and Public Key\" class=\"wp-image-68646\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/34-1024x478.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/34-300x140.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/34-768x358.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/34-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/34-36x17.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/34-48x22.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/34.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy the public key and enter it into the terminal as a username.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1014\" height=\"510\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/35.webp\" alt=\"Public Key - Username\" class=\"wp-image-68647\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/35.webp 1014w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/35-300x151.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/35-768x386.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/35-24x12.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/35-36x18.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/35-48x24.webp 48w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy the private key and enter it into the terminal as the password.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"511\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/36.webp\" alt=\"Private Key - Password\" class=\"wp-image-68648\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/36.webp 1018w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/36-300x151.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/36-768x386.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/36-24x12.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/36-36x18.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/36-48x24.webp 48w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It will ask you to store the credentials for the Magento repository in your system&#8217;s authentication file. So, if you want to save it for the future, enter &#8220;Y,&#8221; and if you do not want to save it, enter &#8220;N.&#8221;<\/li>\n\n\n\n<li>It will start processing the download Magento command.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"511\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/37.webp\" alt=\"Download Magento 2 \" class=\"wp-image-68649\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/37.webp 1017w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/37-300x151.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/37-768x386.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/37-24x12.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/37-36x18.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/37-48x24.webp 48w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/figure>\n\n\n\n<p><strong>Congratulations!<\/strong> We have successfully downloaded the Magento application using Composer.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"509\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/38.webp\" alt=\"Magento 2 Downloaded\" class=\"wp-image-68650\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/38.webp 976w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/38-300x156.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/38-768x401.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/38-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/38-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/38-48x25.webp 48w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/figure>\n\n\n\n<h3 id='install-magento-2-on-localhost-using-command-line'  id=\"boomdevs_11\" class=\"wp-block-heading\">Install Magento 2 on localhost Using Command Line<\/h3>\n\n\n\n<p>Before executing the Magento installation command, open the <strong>Gd2.php<\/strong> file. Go to <strong>vendormagentoframeworkImageAdapterGd2.php<\/strong>, which you can find in your project directory.<\/p>\n\n\n\n<p>Replace this line of code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;if ($url &amp;&amp; isset($url['scheme']) &amp;&amp; !in_array($url['scheme'], $allowed_schemes))<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/39-1024x553.webp\" alt=\"Replace Code\" class=\"wp-image-68651\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/39-1024x553.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/39-300x162.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/39-768x415.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/39-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/39-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/39-48x26.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/39.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>With this code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">if ($url &amp;&amp; isset($url['scheme']) &amp;&amp; !in_array($url['scheme'], $allowed_schemes) &amp;&amp; !file_exists($filename))<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/40-1024x555.webp\" alt=\"Replaced Code\" class=\"wp-image-68652\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/40-1024x555.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/40-300x163.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/40-768x416.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/40-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/40-36x20.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/40-48x26.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/40.webp 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 id='unable-to-apply-data-patch-magento-theme-setup-patch-data-registerthemes-for-module-magento-theme-original-exception-message-wrong-file'  id=\"boomdevs_12\" class=\"wp-block-heading\">unable to apply data patch magento\\theme\\setup\\patch\\data\\registerthemes for module magento_theme. original exception message: wrong file<\/h3>\n\n\n\n<p><strong>Note:<\/strong> If you do not change this line of code, you will get an error &#8220;<strong>Unable to apply data patch MagentoThemeSetupPatchDataRegisterThemes for module Magento_Theme. Original exception message: Wrong file.<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"170\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/41.webp\" alt=\"unable to apply data patch magento\\theme\\setup\\patch\\data\\registerthemes for module magento_theme. original exception message: wrong file\" class=\"wp-image-68653\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/41.webp 961w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/41-300x53.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/41-768x136.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/41-24x4.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/41-36x6.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/41-48x8.webp 48w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once you are done with these changes, open your command prompt and run this command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">php bin\/magento setup:install --base-url=\"http:\/\/localhost\/project-community-edition\/\" --db-host=\"localhost\" --db-name=\"magento2app\" --db-user=\"root\" --admin-firstname=\"admin\" --admin-lastname=\"panel\" --admin-email=\"user@example.com\" --admin-user=\"admin\" --admin-password=\"admin123\" --language=\"en_US\" --currency=\"USD\" --timezone=\"America\/Chicago\" --use-rewrites=\"1\" --backend-frontname=\"admin\" --search-engine=elasticsearch7 --elasticsearch-host=\"localhost\" --elasticsearch-port=9200<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"513\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/42.webp\" alt=\"Fix Error\" class=\"wp-image-68654\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/42.webp 975w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/42-300x158.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/42-768x404.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/42-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/42-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/42-48x25.webp 48w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>Please note the following instructions to configure your Magento 2 installation properly:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Assign the base URL according to your installation path.<\/li>\n\n\n\n<li>Make sure to record the admin username and password for future reference.<\/li>\n\n\n\n<li>Do not use the Elasticsearch port.<\/li>\n\n\n\n<li>Now, replace the default values with your specific information:<\/li>\n<\/ul>\n\n\n\n<p><strong>&#8211;base-url:<\/strong> Use your Magento 2 installation folder path.<\/p>\n\n\n\n<p><strong>&#8211;db-name:<\/strong> Enter your desired database name when creating the database.<\/p>\n\n\n\n<p><strong>&#8211;db-password:<\/strong> Set your preferred database password.<\/p>\n\n\n\n<p><strong>&#8211;db-user:<\/strong> Create a new database user with full permissions or use the default root user.<\/p>\n\n\n\n<p><strong>&#8211;db-password:<\/strong> Specify the password for your database user. If you use the &#8216;root&#8217; database user, leave this field blank.<\/p>\n\n\n\n<p><strong>&#8211;admin-firstname:<\/strong> Provide the first name of the admin user.<\/p>\n\n\n\n<p><strong>&#8211;admin-lastname:<\/strong> Provide the last name of the admin user.<\/p>\n\n\n\n<p><strong>&#8211;admin-email:<\/strong> Enter the email address of the admin user.<\/p>\n\n\n\n<p><strong>&#8211;admin-user:<\/strong> Choose a username for logging into the Admin Panel.<\/p>\n\n\n\n<p><strong>&#8211;admin-password:<\/strong> Set the password for logging into the Admin Panel.<\/p>\n\n\n\n<p><strong>&#8211;language:<\/strong> Select the desired language for your Admin Panel and storefront. Use the language code, e.g., en_US.<\/p>\n\n\n\n<p><strong>&#8211;admin-email:<\/strong> Replace with your email address.<\/p>\n\n\n\n<p><strong>&#8211;currency:<\/strong> Set the default currency for your storefront. You can find a list of supported currencies and their codes by running php bin\/magento info:currency:list.<\/p>\n\n\n\n<p><strong>&#8211;timezone:<\/strong> Change to your local timezone. Refer to the list of supported timezones for available options.<\/p>\n\n\n\n<p><strong>&#8211;url-rewrites:<\/strong> Set to 1 to enable Web Server Rewrites, which can help your site ranking.<\/p>\n\n\n\n<p><strong>&#8211;backend-frontname:<\/strong> Set your Admin URL. If you omit this parameter, Magento will generate a random URL for your Magento Admin path (e.g., admin_jkhgdfq).<\/p>\n\n\n\n<p><strong>&#8211;search-engine:<\/strong> Specify the version of Elasticsearch you want to use for this Magento installation. The default is Elasticsearch 7.<\/p>\n\n\n\n<p><strong>&#8211;elasticsearch-host:<\/strong> Provide the hostname or IP address where Elasticsearch runs. The default is localhost.<\/p>\n\n\n\n<p><strong>&#8211;elasticsearch-port:<\/strong> Specify the port number that Elasticsearch is listening to. The default is 9200.<\/p>\n\n\n\n<p>Note that other values are optional and can be changed later.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once you have completed the configuration, Composer 2 will begin installing Magento 2. The installation process will take some time to be done.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"511\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/43.webp\" alt=\"Magento 2 installed on Localhost using xampp and composer\" class=\"wp-image-68655\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/43.webp 976w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/43-300x157.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/43-768x402.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/43-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/43-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2023\/07\/43-48x25.webp 48w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/figure>\n\n\n\n<p>When you see the &#8220;<strong>SUCCESS<\/strong>&#8221; prompt on your screen, you have done the installation process correctly. We have successfully installed Magento 2 on localhost using the XAMPP Server.<\/p>\n\n\n\n<p>Now, you are required to execute the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php bin\/magento indexer:reindex\n\nphp bin\/magento setup:upgrade\n\nphp bin\/magento setup:static-content:deploy -f\n\nphp bin\/magento cache:flush<\/pre>\n\n\n\n<p>You can make any changes to your Magento 2 store and customize it according to your needs or requirements.<\/p>\n\n\n\n<p>To access your Magento store, enter this URL <strong>localhost\/projectdirectoryname\/pub\/<\/strong> or use the base URL you previously set for &#8216;base-url&#8217; during the installation into the browser.<\/p>\n\n\n\n<p>To access your Magento\u2019s admin panel\/dashboard, enter this URL <strong>http:\/\/localhost\/projectdirectoryname\/pub\/admin<\/strong> into the browser.<\/p>\n\n\n\n<h2 id='conclusion'  id=\"boomdevs_13\" class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>You&#8217;ve successfully learned to set up Magento 2 on localhost using the XAMPP server and Composer. When you&#8217;re ready to launch your online store, you can count on Devrims <a href=\"https:\/\/devrims.com\/magento-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Managed Magento Hosting<\/a> to improve performance, increase sales, and handle all server-side management.<\/p>\n\n\n\n<p>With Devrims handling the technical side, you can focus entirely on building your Magento 2 store. If you run into any issues during the installation, feel free to reach out for help.<\/p>\n\n\n        <div class=\"cta-banner magento mb-3\" style=\"background-image: url(https:\/\/devrims.com\/blog\/wp-content\/uploads\/2025\/02\/Magento-CTA-BG.png);\">\r\n            <div class=\"container\">\r\n\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t<div class=\"col-md-7\">\r\n\t\t\t\t\t\t<h2>Worried About How to <span class='bg-color'>Migrate<\/span> your Hosting?<\/h2>\r\n\t\t\t\t\t\t<p>Stop worrying and enjoy seamless, free migration with no downtime. Plus, get 24\/7 tech support to handle any hosting-related issues. <\/p>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<div class=\"cta-btn-wrapper\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/user.devrims.com\/signup?utm_source=Blogs&#038;utm_medium=CTAs&#038;utm_campaign=Conversions\" target=\"_blank\" class=\"btn btn-primary\">Avail 3-days Free Trial Now!<\/a>\r\n\t\t\t\t\t\t\t<span class=\"cta-btn-bottom-title\">No Credit Card Required<\/span>\r\n\t\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t\t:has(.DevOps) .cta-btn-bottom-title{\r\n\t\t\t\t\t\t\t\t\tdisplay: none;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t<\/style>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-5\">\r\n\t\t\t\t\t\t<div class=\"cloud-partner-wrapper\">\r\n\t\t\t\t\t\t\t<!-- <h3>Cloud Partners<\/h3> -->\r\n\t\t\t\t\t\t\t<div class=\"cloud-partners-images\">\r\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2025\/02\/Magento-Hosting-New-2-Image.svg\" class=\"Magento4\" alt=\"\">\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n        <\/div>\r\n        \n\n\n\n<h4 id='related-topics'  id=\"boomdevs_14\" class=\"wp-block-heading\">Related Topics:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/devrims.com\/blog\/debug-magento-2-store\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Debug Magento 2 Store \u2013 Easy Steps<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devrims.com\/blog\/magento-cron-jobs\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Set Up Magento Cron Jobs<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devrims.com\/blog\/create-manage-products-in-magento\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create and Manage Products in Magento<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devrims.com\/blog\/how-to-create-magento-2-configurable-product\/\" target=\"_blank\" rel=\"noreferrer noopener\">How do you set up a Magento 2 configurable product?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devrims.com\/blog\/magento-seo-audit-improve-your-ecommerce-sites-search-rankings-and-traffic\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento SEO Audit \u2013 Improve Your Ecommerce Site\u2019s Search Rankings and Traffic<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Are you ready to set up Magento 2 on your localhost using the XAMPP server but unsure where to start? Whether you&#8217;re new to Magento or an experienced developer looking for a quicker installation process, this step-by-step guide is for you. Installing Magento 2 with XAMPP gives you a local testing environment where you can [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":68376,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[47],"ad-banner":[84],"blog-popup":[80],"cta-banner":[],"class_list":["post-53533","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento","tag-magento-development","ad-banner-magento","blog-popup-app-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/posts\/53533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/comments?post=53533"}],"version-history":[{"count":29,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/posts\/53533\/revisions"}],"predecessor-version":[{"id":68665,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/posts\/53533\/revisions\/68665"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/media\/68376"}],"wp:attachment":[{"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/media?parent=53533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/categories?post=53533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/tags?post=53533"},{"taxonomy":"ad-banner","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/ad-banner?post=53533"},{"taxonomy":"blog-popup","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/blog-popup?post=53533"},{"taxonomy":"cta-banner","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/cta-banner?post=53533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}