How to I Deploy Magento into CloudJiffy PHP Cloud

Magento is an extremely popular open source e-commerce service powered by PHP. It provides a flexible modular architecture enhanced with agile ecosystem to continually adapt, customize and extend my platform. This allows Magento to be much more versatile than most e-commerce platforms at storing a large range of data.

With CloudJiffy PaaS, I can not just integrate Magento instance to the platform but also get a clustered solution out-of-the-box. So, let’s have a better insight into these options:

  • one-click automated installation
  • manual deployment

Magento Cluster Automatic Installation

I can have a reliable and auto-scalable Magento Cluster solution for e-commerce websites up and running within minutes using the one-click installation package. If I already registered at CloudJiffy PaaS, it can be installed directly from my dashboard using CloudJiffy Marketplace.

If I don’t have an account, I can automatically get it and, simultaneously, initiate Auto-Scalable Magento Cluster solution installation - just click the Get it hosted now button below and fill the form within the opened page.


As a result, I’ll get a new environment with the following topology:


magento auto-cluster topology

Read the Auto-Scalable Magento Cluster article for the detailed description or check the project repository at GitHub.


Instruction on Manual Magento Installation

In case I are intended to gain the full control over non-clustered Magento installation, we also prepared the detailed guide on its manual deployment. Follow the step-by-step instruction below to get my PHP Magento application inside CloudJiffy PaaS:

Create Environment

1. Log in to my CloudJiffy account and click New Environment at the top left corner of the dashboard:

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


magento environment topology wizard

Note: MySQL 8 is not supported by Magento. Also, PHP 7.2.x is supported starting with the 2.3 release (currently in development).

Configure other parameters up to my needs (e.g. cloudlets limit or region) and click Create.

3. After creation, click the Config button next to my Apache server to check if the appropriate modules are activated.


magento application server config button

4. Navigate to the /etc/php.ini file, locate and uncomment the following extensions as it is shown in the image below:

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


magento phpini enable extensions

5. Save file and Restart nodes to apply changes.


magento application server restart

Upload Application

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

https://github.com/magento/magento2.git


add magento github repository

2. Deploy Magento package into my environment.

For the automatic dependencies  installation, expand the Hooks section and add the Post script, which will run the Composer tool from my project directory:

 

cd $WEBROOT/ROOT
composer install


deploy magento into environment

Tip: I can adjust the Branch field to provide the exact version of Magento (e.g. we set the 2.2.6 tag as the latest stable one at the moment).

In a minute my Magento project will be deployed.

Configure Database

1. While my project is deployed and dependencies installed, I can create a dedicated database with user. Click the Open in Browser button for my MySQL node.


magento database open in browser

2. Log in with credentials I’ve received via email after environment creation. Switch to the User accounts tab and click the Add user account link.


magento database add user account

3. Provide the desired User name and Password for my new account.


magento database user credentials and privileges

Tick the Create database with same name and grant all privileges option and click Go at the bottom of the page.

Install Magento

1. Click the Open in Browser button for my application server.


magento open in browser button

2. The process of installation is rather simple, just follow the displayed steps.

magento installation page

3. Let's pay attention to the Add a Database step. Fill in the fields by specifying my database host (for example can be seen in the appropriate email) and credentials of a user created in the previous section:


4. Configure my Magento installation through the other steps and click Install Now on the last one to proceed.

Tip: On the first connection to admin panel, I may see some warning notifications at the top of the admin panel:

  • invalid indexers - run the next command php $WEBROOT/ROOT/bin/magento indexer:reindex command via Web SSH to reindex
  • invalidated cache - select the appropriate cache (e.g. Page Cache) and refresh it via admin panel

That's all! Now I can start working with Magento in CloudJiffy PaaS.

Tip: On the first connection to admin panel, I may see some warning notifications at the top of the admin panel:

  • invalid indexers - run the next command php $WEBROOT/ROOT/bin/magento indexer:reindex command via Web SSH to reindex
  • invalidated cache - select the appropriate cache (e.g. Page Cache) and refresh it via admin panel

That's all! Now I can start working with Magento in CloudJiffy PaaS.

 


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 11339