Simplest and Easiest way to install Magento 2

admin/ July 9, 2016/ Linux, Magento2/ 0 comments

Simplest and Easiest   way to install Magento 2.

I would like to introduce you all the simplest way to installMagento 2 on any platform.

1. Install Composer
For Ubuntu -:

$ sudo apt-get install -y composer

Note-: The above command works on ubuntu 15.04 onwards.
OR

$ curl -sS https://getcomposer.org/installer | php 
$ mv composer.phar /usr/local/bin/composer
$ sudo chmod 0755 /usr/local/bin/composer

For Centos-:

$ yum install -y curl
$ curl -sS https://getcomposer.org/installer | php 
$ mv composer.phar /usr/local/bin/composer
$ sudo chmod 0755 /usr/local/bin/composer

For Windows-:

Click here to Download Composer.
Install composer Setup.

2. Install the Magento 2 using composer. ( It will install latest stable github version.)

Create a database using phpmyadmin and run the below command in terminal or cmd.exe .
 $ composer create-project magento/community-edition [MagentoInstanceName]
$ php bin/magento setup:install --base-url=http://localhost/[MagentoInstanceName]/ \
--db-host=localhost --db-name=[database] --db-user=DatabaseUser --db-password=DatabasePass \
--admin-firstname=Gotechnies --admin-lastname=admin [email protected] \
--admin-user=admin --admin-password=admin1234 --language=en_US --currency=USD \
--timezone=America/Chicago --use-rewrites=1

Additional Step-:

If css or js is not working in this magento 2 instance. Please run the below command.
 $ php bin/magento setup:static-content:deploy
Gotechnies Magento 2 Blog


Rating: 4.9
Votes: 37
Reviews: 150

Leave a Reply