Install Magento 2 Localhost

Posted on  by admin

Version: Magento 1 vs Magento 2. The Magento 2.0 Release Candidate (RC) was launched back in 2014, six years after Magento 1. It was discontinued in June 2020, meaning it’s no longer supported. For a list of differences between both, check this post in the official Magento forum. Edition: Open Source Edition vs Commerce Edition. The next thing that you need to do to install Magento 2 on the XAMPP server is moving to localhost/phpMyAdmin and creating a database with the name magento2. Enter localhost/magento2 in your browser and click on the Agree and Setup Magento button. Then, you will need to finish 6 steps of the Magento 2 installation.

How to Install a Magento 2 on localhost

So many people as beginners of Magento 2 often get problem with Magento 2 installation and Command Line. Today i will share my experience in this job.

I suppose the project named: magento-2.1.0 (relative path looks like xampp/htdocs/magento-2.1.0/)

You install this project follow magento's guide http://devdocs.magento.com/guides/v2.0/install-gde/bk-install-guide.html

I just want to instruct the way to use the Command Line.

After you completed Magento 2 Installation, you need to run some command:

- Open Xampp as below screenshot

Of course we have a few ways to run command line but this is my favorite way

Then type:

Install

How To Install Magento2 In Localhost Wamp

cd htdocsmagento-2.1.0bin [Enter]

php magento setup:static-content:deploy [Enter]

php magento indexer:reindex [Enter]

How to install magento2 in localhost xampp

How To Install Magento 2 Theme In Localhost

Done!! Your Magento 2 installation completed

How To Install Magento2 In Localhost Ubuntu

If you want to install the extensions for this project, you just need type command:

Magento 2 Localhost Install

php magento setup:upgrade [Enter]

How To Install Extension In Magento 2 Localhost

php magento static-content:deploy [Enter] ( this command applys to extension including js, css, html files in web directory)