admin/ July 9, 2016/ Linux, Magento2/ 1 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.

$ curl -sS | php 
$ mv composer.phar /usr/local/bin/composer
$ sudo chmod 0755 /usr/local/bin/composer

For Centos-:

$ yum install -y curl
$ curl -sS | 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
Share this Post

1 Comment

  1. Thanks for sharing this way to install magento, i tried this one and successfully done with that, Here is another guide which i often follow to keep myself updated with magento, Your posts are very informative and easily place, keep up the great work, i would be following up.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.