How to Install Magento on CyberPanel Enterprise

How to Install Magento on CyberPanel Enterprise

Magento is an open-source e-Commerce platform or content management system (CMS) written in PHP, which lends a hand to developers to build eCommerce websites. Magento has two main editions: Enterprise and Community edition. The community edition is for programmers and small business.

Comparing to standard set up of Varnish and Nginx, LiteSpeed provide simpler stack, less resources used and HTTP2, QUIC out of box.

Magento has the potential to make online shopping sites fully customizable to meet user requirements. Magento proves to the world it’s possible to make fast eCommerce stores. It has the ability to produce fast loading pages and has very few HTTP requesta compared to other eCommerce platforms out there in the world.

In this article, we will show you how to install Magento Community Edition on CyberPanel Enterprise.

Requirments:

Requirements for installing Magento Community Edition on your system:

  • CyberPanel Enterprise
  • PHP version 7.1x or later
  • LiteSpeed Web Server (Site Owner or Web Host licenses) Free Starter has no LiteMage Module

Step 1: Download Magento Community Edition

Go to the official site of Magento and create a user account in a few steps if you are a new customer, or log in if you already have an account. After that, download the latest version of Magento Community Edition.

http://www.magentocommerce.com/download

Step 2: Upload Magento to CyberPanel Enterprise

Log into your CyberPanel server. If you have already created a website on CyberPanel, then click Websites on the left sidebar. Click List of Websites and follow the file manage link.

In public_html, upload the downloaded Magento file from your computer, extract it by clicking on the Extract button on CyberPanel as shown in the picture below.

Now you need to set the ownership on the files and folder by clicking the Fix Permissions button in CyberPanel. This will automatically fix the permissions for you.

Step 3: Create Database

Now you need to create the database for Magento which Cyberpanel creates for you by clicking Databases>>Create Database. There you can select the particular website, add database name, user name and password.

Note: Password can be automatically generated by clicking the Generate button.

Step 4: Installation Process

Now open your browser and navigate to the following URL. You will be presented with the Magento installation wizard.

Next, the wizard will carry on a Readiness Check for the correct PHP version, file permissions and compatibility.

Readiness Check Summary 

Enter Database Setting

Setting up Web-site Configuration

Modify your Magento store by setting currency, timezone and language.

Create an Admin account to manage your Magento store with admin credentials.

Now click the ‘Install Now‘ button to continue the Magento installation process.

 

All done! you have successfully installed Magento on CyberPanel Enterprise. If you face any error while installing please comment below.

Step 5: Install and Configure LiteMage Cache

In this step I will describe to you how to install and configure the LiteMage Cache solution for Magento. Follow the steps below to install for your version of Magento.

Note: LiteMage requires LiteSpeed Enterprises Web server for the correct installation. 

Installing LiteMage Cache solution on Magento you have to follow these steps correctly:

  1. Log into your SSH account
  2. Access the root directory where Magento is installed. In my case it is cd /home/shaheer.cyberpanel.net/public_html
  3. In your command line, set Magento to developer mode. Run the following command:
  4. To download the LiteMage plugin files, you have two methods:
    1. Method 1: Use wget download directly:
    2. Method 2: Use composer to get latest LiteMage 2 package with command:

      or for a specific version, command:
  5. To extract the files in the .zip file, you can do from the CyberPanel Extract button on control panel or just type this  command on the command line:
  6. To create a directory for the LiteMage plugin files, type the following command:
  7. Move the unpacked LiteMage plugin files to the new directory:
  8. To enable the LiteMage plugin, run the following command:
  9. To make the plugin settings available for the Magento Admin panel, type the following command:
  10. Run Compile as following command:
  11. To set Magento back to production mode, type the following command:
  12. Go to the Root Directory of Magento, open the .htaccess file, and paste the following code on the top of the file:

To activate LiteMage on Magento, the following steps should be followed correctly:

  1. Log into the Magento admin panel.
  2. In the left sidebar, click STORES, and then click Configuration.
  3. Click ADVANCED, and then click System.
  4. Click Full Page Cache.
  5. In the Caching Application list box, confirm that LiteMage Cache within LiteSpeed Server is selected. If LiteMage Cache within LiteSpeed Server is not selected, select it in the Caching Application list box, and then click Save Config.
  6. In the left sidebar, click SYSTEM, and then click Cache Management.
  7. Select the Configuration and Page Cache check boxes.
  8. In the list box above the table, select Refresh, and then click Submit.

VERIFYING LITEMAGE CACHE

  1. Open your web browser to visit a page that is cache-enabled.
  2. Open the web browser inspector by right-clicking the page, and then click Inspect.
  3. Select the Network tab, and then refresh the page.
  4. Select the item from the list that corresponds to the current HTML page (this is usually the first item ending in .html).
  5. Under Headers, if you see the following response header, then LiteMage is working correctly:

    For More Information, Please Check: LiteMage for Magento 2 Installation Guide

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: