{"id":8403,"date":"2026-05-21T01:46:14","date_gmt":"2026-05-20T23:46:14","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8403"},"modified":"2026-05-21T01:46:15","modified_gmt":"2026-05-20T23:46:15","slug":"configurarea-utilizarii-cache-ului-redis-cu-socket-unix-in-magento","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/configuring-redis-cache-usage-with-unix-socket-in-magento\/","title":{"rendered":"Configurarea utiliz\u0103rii cache-ului Redis cu Unix Socket \u00een Magento"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">Magento, a powerful e-commerce platform, offers various configuration options to optimize site performance. One of the key elements is effective cache management. In this article, we&#8217;ll discuss how to configure Redis Cache in Magento, using Unix Sockets instead of a traditional TCP\/IP connection.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/configuring-redis-cache-usage-with-unix-socket-in-magento\/#What_is_Redis_and_why_use_it_in_Magento\" >What is Redis and why use it in Magento?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/configuring-redis-cache-usage-with-unix-socket-in-magento\/#Benefits_of_using_Redis_in_Magento\" >Benefits of using Redis in Magento:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/configuring-redis-cache-usage-with-unix-socket-in-magento\/#Step_1_Install_Redis_on_the_server\" >Step 1: Install Redis on the server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/configuring-redis-cache-usage-with-unix-socket-in-magento\/#Step_2_Check_for_Unix_Socket_Availability\" >Step 2: Check for Unix Socket Availability<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/configuring-redis-cache-usage-with-unix-socket-in-magento\/#Step_3_Configuring_Redis_in_Magento\" >Step 3: Configuring Redis in Magento<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/configuring-redis-cache-usage-with-unix-socket-in-magento\/#Step_4_Configure_Unix_Socket\" >Step 4: Configure Unix Socket<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/configuring-redis-cache-usage-with-unix-socket-in-magento\/#Step_5_Save_changes_and_test_the_configuration\" >Step 5: Save changes and test the configuration<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Redis_and_why_use_it_in_Magento\"><\/span>What is Redis and why use it in Magento?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis is an in-memory store that can be used as a fast and efficient caching system. Its advantages include fast access to data by storing it directly in RAM, which speeds up page loading and database queries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Benefits_of_using_Redis_in_Magento\"><\/span>Benefits of using Redis in Magento:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Speed<\/strong>\u00a0: Redis is a very fast system, which speeds up data access.<\/li>\n\n\n\n<li><strong>Flexibility<\/strong>\u00a0: With various data structures such as lists, hashes, and sets, Redis is flexible and adapts to different application needs.<\/li>\n\n\n\n<li><strong>Cache Management<\/strong>\u00a0: Effective cache management speeds up page loading and improves overall site performance.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Install_Redis_on_the_server\"><\/span>Step 1: Install Redis on the server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-3140680885\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">Make sure Redis is installed on the server running your Magento site. You can do this using the package manager for your operating system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Check_for_Unix_Socket_Availability\"><\/span>Step 2: Check for Unix Socket Availability<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Check if your Redis server supports Unix Socket connections. Unix Sockets are an alternative to TCP\/IP connections and can improve security and performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Configuring_Redis_in_Magento\"><\/span>Step 3: Configuring Redis in Magento<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Go to your Magento admin panel and go to the tab&nbsp;<code class=\"\">System -&gt; Configuration<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Select the tab&nbsp;<code class=\"\">Advanced -&gt; System<\/code>and locate the section&nbsp;<code class=\"\">Full Page Cache<\/code>. Here you can configure Redis as your cache system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Configure_Unix_Socket\"><\/span>Step 4: Configure Unix Socket<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the Redis Cache Backend section, configure the settings to use a Unix Socket instead of a TCP\/IP connection. In the box\u00a0<code class=\"\">Server<\/code>, enter the path to the Unix Socket file, for example\u00a0<code class=\"\">\/home\/mybox\/LOGIN\/.redis\/redis.sock<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Save_changes_and_test_the_configuration\"><\/span>Step 5: Save changes and test the configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After making changes, save the configuration and test whether Magento is now using Redis instead of the default cache.<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[47,58],"manual_kb_tag":[728,784,969,2252,2592,3014,7587,7588,7589,7590],"class_list":["post-8403","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-redis","manualknowledgebasecat-web-applications-cms","manual_kb_tag-redis","manual_kb_tag-magento","manual_kb_tag-redis-cache","manual_kb_tag-cache-management","manual_kb_tag-unix-socket","manual_kb_tag-redis-configuration","manual_kb_tag-magento-configuration","manual_kb_tag-magento-performance","manual_kb_tag-unix-socket-connection","manual_kb_tag-unix-sockets"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8403\/revisions"}],"predecessor-version":[{"id":8405,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8403\/revisions\/8405"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=8403"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8403"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=8403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}