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.
Step 2: After login, create a server and select Magento from Select Application drop down. Provide details for your server and application.
Step 3: Select Cloud provider of your choice. In this tutorial, we are using 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.
Step 5: Select your server location by keeping the latency factor in mind.
Now click on Launch Server button from the bottom of the page and wait for your server preparation.
Now go to your application and click on Launch Database Manager under Access Detail.
After launching database manager, select all the tables and click on Drop.
Go to your server and click on Launch SSH terminal under Master Credentials.
#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/.