The best way to do this is to download and run Composer-Setup.exe. So you need to install Composer 2 to download Magento 2 with the latest version. The latest version of Magento, open source 2.4.0 onwards, is compatible with Composer 2. Note: Remember the name of the database you would create as you’ll want to install Magento on it later on. Put in a database name (for example, Magento2) and click Create.Ĭlick the Next button to create the database. Step: 4 Configure Hosts FileĪccess to the directory C:\Windows\System32\drivers\etc\hosts.ġ27.0.0.1 Open the XAMPP Control Panel and start Apache and MySQL applications.Īccess the URL to create a database. Don’t quit XAMPP after this step, just let it run. Then, click the Start button on 2 rows of Apache and MySQL to start them. In the php.ini file, find these rows and remove semicolons ( ? before each row:Įxtend the memory_limit to 4G: memory_limit=4GĪfter you’ve done, save and close the file. In XAMPP Control Panel, click the Config button on the Apache row, and click PHP (php.ini). Click Finish to exit setup and enter XAMPP Control Panel. Please wait until the setup wizard installs XAMPP on your computer.Īfter setup is finished, you will see the option “ Do you want to start the Control Panel now?”. If you need to change, click the Browse icon to change your destination for the XAMPP program, and then click the Next button to go to the next step. The default location is C:\xampp, but selecting a directory other than C:\ drive like D:\ or E:\ as per your convenience is recommended. Click the Next button.Ĭhoose your installation folder. Leave the default selection as in the image. Step: 2 Install the XAMPP ServerĪfter downloading XAMPP, please double-click on the file to install it on your computer. Also, you can install Magento 2.4 with PHP 7.3, but it is not tested or recommended. Magento strongly recommends installing XAMPP with PHP version 8.1.x for M2.4.5. Go to Apache Friends and Download XAMPP Server. I will cover the installation of Magento 2 on localhost so that you will not face any issues while following the process. Try 3 days Free! Install and Set up XAMPP MySQL/MariaDB Version 5.6.x, 5.7.x or Maria DB.A localhost installation allows you to easily back up and restore your website in case of a problem.īefore installing Magento using Composer, you should check the prerequisites and system requirements that need to be installed.By running Magento 2 on a localhost, you can protect your store from unauthorized access and hacking attempts.Localhost environments typically perform faster than remote servers because there is no latency from network communication. A localhost installation allows you to customize your website without the risk of breaking the live site.A localhost installation allows developers to test new features and extensions before deploying them to a live site.A local installation of Magento 2 allows you to work on your website offline without an internet connection.Running Magento 2 on localhost eliminates the need for a dedicated hosting plan, which can be costly.These are the following benefits of installing Magento 2 on a localhost:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |