Skip to content

Instantly share code, notes, and snippets.

@alexmorco
Last active March 1, 2018 14:37
Show Gist options
  • Save alexmorco/4aacf13527ac154ade31fdcec04b24d7 to your computer and use it in GitHub Desktop.
Save alexmorco/4aacf13527ac154ade31fdcec04b24d7 to your computer and use it in GitHub Desktop.
Install Latest Magento 2 Version Using Composer

Magento 2 was introduced a while back and has already created quite a buzz in the ecommerce industry. Online merchants have already started installing and setting up their e-stores before the holiday season rush. If you are wondering how you can easily install Magento 2 on Cloudways, then follow this simple, step-by-step guide on installing Magento 2 using Composer.

#H1 Prepare your server for Magento 2 installation.

Step 1: Login to Cloudways with your Username and Password. Signup on Cloudways, if you don’t have an account yet.

Cloudways Login

Step 2: After login, create a server and select Magento from Select Application drop down. Provide details for your server and application.

Select Magento Application

Step 3: Select Cloud provider of your choice. In this tutorial, we are using DigitalOcean.

Select DigitalOcean

Step 4: Select your server size according to your requirements.

Note: Kindly select 1GB or above server size. Magento stores hosted on less than 1GB server can make your online website slow, resulting in loss of customers.

Select Server Size

Step 5: Select your server location by keeping the latency factor in mind.

Select Server Location

Now click on Launch Server button from the bottom of the page and wait for your server preparation.

Launch Server

Now go to your application and click on Launch Database Manager under Access Detail.

Launch Database

After launching database manager, select all the tables and click on Drop.

Click Drop

Go to your server and click on Launch SSH terminal under Master Credentials.

SSH Terminal

#H2 Magento 2 Installation:

In your “public_html” directory run this command to remove all files.

rm -Rf *

Now run the following command to install Magento 2 using composer.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

Note: To install Magento 2 in the current directory (e.g. public_html) do not forget to add the (.) dot in the end.

This article was originally published at Cloudways. You can check more about Installing Latest Magento 2 Version Using Composer at: https://www.cloudways.com/blog/install-magento-2-composer/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment