How to configure sessions by Redis in Magento2 using the Unix Socket

    The session can be configured in two ways. Configure caching by editing the file env.php Using the CLI tool Session socket is runnning in the following sock /var/run/redis-multi.redis/redis.sock Config the editig by env.php ‘session’ => [ ‘save’ => ‘redis’, ‘redis’ => [ ‘host’ => ‘/var/run/redis-multi.redis/redis.sock’, ‘port’ => ‘0’, ‘password’ => ”, ‘timeout’ => ‘2.5’, ‘persistent_identifier’ => ”, ‘database’ => ‘0’, ‘compression_threshold’ => ‘2048’, ‘compression_library’ => ‘gzip’, ‘log_level’ => ‘3’, ‘max_concurrency’ => ‘6’, ‘break_after_frontend’ => ‘5’, ‘break_after_adminhtml’ => ’30’, ‘first_lifetime’ => ‘600’, ‘bot_first_lifetime’ => ’60’, ‘bot_lifetime’ => ‘7200’, ‘disable_locking’ => ‘0’, ‘min_lifetime’ => ’60’, ‘max_lifetime’ => ‘2592000’, ‘sentinel_master’ => ”, ‘sentinel_servers’ => ”, ‘sentinel_connect_retries’ => ‘5’, ‘sentinel_verify_master’ => ‘0’ ] ],…


    Ecommerce and Types of Ecommerce

    Ecommerce (e-commerce) or electronic commerce, a subset of e-business, is the purchasing, selling, and exchanging of goods and services over computer networks (such as the Internet) through which transactions or terms of sale are performed electronically. Contrary to popular belief, eCommerce is not just on the Web B2B (Business-to-Business) Companies doing business with each other such as manufacturers selling to distributors and wholesalers selling to retailers. Pricing is based on the quantity of order and is often negotiable B2C (Business-to-Consumer) Businesses selling to the general public typically through catalogs utilizing shopping cart software. By dollar volume, B2B takes the prize, however, B2C is really what the average Joe has in…


    How to configure redis cache in Magento2 using the Unix Socket

    Redis cache can be configured in two ways. Configure caching by editing the file env.php Using the CLI tool For Example Redis Cache is running in the following sock  /var/run/redis-multi.redis/redis.sock Configure caching by editing the file env.php Below lines needs to add in env.php file. ‘cache’ => [ ‘frontend’ => [ ‘default’ => [ ‘id_prefix’ => ‘8ad_’, ‘backend’ => ‘Cm_Cache_Backend_Redis’, ‘backend_options’ => [ ‘server’ => ‘/var/run/redis-multi.redis/redis.sock’, ‘database’ => ‘0’, ‘port’ => ‘0’, ‘password’ => ” ] ], ‘page_cache’ => [ ‘id_prefix’ => ‘8ad_’, ‘backend’ => ‘Cm_Cache_Backend_Redis’, ‘backend_options’ => [ ‘server’ => ‘/var/run/redis-multi.redis/redis.sock’, ‘database’ => ‘1’, ‘port’ => ‘0’, ‘compress_data’ => ‘0’, ‘password’ => ” ] ] ] ], Using CLI…


    Magento 2 Few important Tools

    Magento 2 Data Migration – https://github.com/magento/data-migration-tool Magento2 Coding Standards – https://github.com/magento/magento-coding-standard Magento 2 Front-End debugging/Inspection tools – https://github.com/magento/m2-devtools Magento 2 PhpStorm Plugin – https://github.com/magento/magento2-phpstorm-plugin Magento 2 Martketplace tool  – https://github.com/magento/marketplace-tools Magento 2 Performance Toolkit – https://github.com/magento/magento2/tree/2.3/setup/performance-toolkit Reference : https://devdocs.magento.com/


    Data Migration from Magento 1.X to Magento 2.X

    Data Migration tool officially released by Magento for Community editions. For Enterprise edition only Partners can get the data migration tool. There is few rules for successful migration. Don’t make any changes in Magento 1 admin except order Management. Stop all cron jobs in Magento 1 Don’t alter any code Don’t make changes in Magento2 admin and storefront. Supported Versions Following version are supported for Migration Community Edition (CE) version 1.6.x, 1.7.x, 1.8.x, 1.9.x Enterprise Edition (EE) version 1.11.x, 1.12.x, 1.13.x, 1.14.x Terminology in Migration Tool. There are lot of differences in the structure and format of data between Magento 1 and Magento 2. In Map all those are declared.…


    Cache Mechanism in Magento

    Cache plays main role in magento. Magento has two levels of cache. A Fast level A Slow level There are various type of  caching are available like FileSystem , APC, Memcache and Redis cache. FileSystem Cache and fullpage caches are maintained in  filesystem, for storage we can use SSD Hardisk can be used, which we can read the files faster. This is only useful to smail Buisness with low traffic. APC Alternative PHP Cache is free opcode cache for PHP. It is optimize the PHP intermediate code APC PHP Module will not speed up the module, instead of that its eliminates the delay caused by Magento PHP .tags are not…


    Magento Frontend Validation Classes

    Magento handling the validation by extenal javascript( validation.js). we need to write the form field values has been assinged. Below are the validation rules(class names) and their error messages. ‘validate-no-html-tags’ => ‘HTML tags are not allowed’ ‘validate-select’ => ‘Please select an option.’ ‘required-entry’ => ‘This is a required field.’ ‘validate-number’ => ‘Please enter a valid number in this field.’ ‘validate-number-range’ => ‘The value is not within the specified range.’ ‘validate-digits’ => ‘Please use numbers only in this field. Please avoid spaces or other characters such as dots or commas.’ ‘validate-digits-range’ => ‘The value is not within the specified range.’ ‘validate-alpha’ => ‘Please use letters only (a-z or A-Z) in this…

  • GIT

    GIT (Version Control System)

    What is Version Control? Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. It allows you to revert files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more. Local Version Control Systems Many people’s version-control method of choice is to copy files into another directory It is easy to forget which directory you’re in and accidentally write to the wrong file or copy over files you…

Free Web Hosting