Browsed by
Category: Other

Integration Elasticsearch On Magento 2 Community (CE)

Integration Elasticsearch On Magento 2 Community (CE)

Magento 2 Open Source (CE) does not provide integration with Elasticsearch by default, but we have other choices for this case there are Magento 2 Free Module: Elasticsuite from Smile-SA => https://github.com/Smile-SA/elasticsuite/ Elasticsearch Free Service cloud: https://bonsai.io Now let we are going to Install Elasticsearch extension and config Elasticsearch extension with Bonsai Elasticsearch cloud Step 1: Create an account in https://bonsai.io and create your first Cluster. After all you will have an Access URL like this: https://[username]:[password]@[application-code].ap-southeast-2.bonsaisearch.net Step 2: Let login to the web server with ssh command line:…

Read More Read More

How to override Magento 2 js using Mixins?

How to override Magento 2 js using Mixins?

A Magento 2 RequireJS “mixin” allows you to programmatically listen for the initial instantiation of any RequireJS, How to mixins in Magento 2 work? First, create requirejs-config.js var config = { config: { mixins: { ‘Magento_Checkout/js/model/quote’: { ‘PackageName_ModuleName/js/plugin-quote’: true } } } };   Magento_Checkout/js/model/quote js file you want to rewrite. PackageName_ModuleName/js/plugin-quote target file. plugin-quote.js /*global define*/ define([“jquery”], //defile more js here function ($) { ‘use strict’; var mixins = { getTotals: function () { //Define new content for getTotal() function…

Read More Read More

Config Redis Cache with Magento 2

Config Redis Cache with Magento 2

1. Raise somaxconn above [tcp-backlog] value: sudo nano /etc/rc.local Add this: sysctl -w net.core.somaxconn=65535 When you reboot the next time, the new setting will be to allow 65535 connections instead of 128 as before. 2. Make sure to disable Linux kernel feature transparent huge pages, it will affect greatly both memory usage and latency in a negative way. This is accomplished with the following command: echo never > /sys/kernel/mm/transparent_hugepage/enabled. then add the command to your /etc/rc.local file. if test -f…

Read More Read More

How To Set Up Apache Virtual Hosts on Ubuntu

How To Set Up Apache Virtual Hosts on Ubuntu

Introduction The Apache web server is the most popular way of serving web content on the internet. It accounts for more than half of all active websites on the internet and is extremely powerful and flexible. Apache breaks its functionality and components into individual units that can be customized and configured independently. The basic unit that describes an individual site or domain is called a virtual host. These designations allow the administrator to use one server to host multiple domains…

Read More Read More

How To Install the Apache Web Server on Ubuntu

How To Install the Apache Web Server on Ubuntu

Introduction The Apache HTTP server is the most widely-used web server in the world. It provides many powerful features including dynamically loadable modules, robust media support, and extensive integration with other popular software. In this guide, we’ll discuss how to install an Apache web server on your Ubuntu 16.04 server. Prerequisites Before you begin this guide, you should have a regular, non-root user with sudo privileges configured on your server. Additionally, you will need to configure a basic firewall to…

Read More Read More

Follow by Email
Facebook
Facebook
LinkedIn