{"id":7750,"date":"2023-06-29T12:44:48","date_gmt":"2023-06-29T12:44:48","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=7750"},"modified":"2023-06-29T12:44:49","modified_gmt":"2023-06-29T12:44:49","slug":"how-to-install-redis-and-php-redis-extension-on-whm-server","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/how-to-install-redis-and-php-redis-extension-on-whm-server\/","title":{"rendered":"How To Install Redis And Php Redis Extension On WHM Server"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 3,085<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>Redis is an open-source archive data store used as a website, cache, and message vendor that can be used as a drop-in caching back-end for your Drupal or WordPress website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How do Redis caching works?<\/strong><\/h2>\n\n\n\n<p>Most web-based frameworks such as WordPress use a database to store in-app internal \u201citems\u201d (menu trees, filter results, etc.) and store archive content. Redis provides an alternative to archiving, removing that functionality from a website, which is important for increasing the number of logged-in users. This is achieved by keeping the query results as memory blocks.<\/p>\n\n\n\n<p>1.Redis packages are not available under the default repositories. You need to enable the EPEL yum repository on your server first. Use the command below to enable :<br><br># yum install epel-release<\/p>\n\n\n\n<p>2. Install the Redis server using this command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install -y redis<\/pre>\n\n\n\n<p>3. After installing the Redis server, restart and enable to auto-start the Redis service on system reboot with this command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl start redis\n\n# systemctl enable redis<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Installing PHP Redis Extension on the WHM Server<\/strong><\/h2>\n\n\n\n<p><strong>STEPS: \u2013<\/strong><\/p>\n\n\n\n<p>1. To use this tutorial, you must have root access to your WHM \/ cPanel server.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"411\" height=\"332\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img1-1.png\" alt=\"How To Install Redis And Php Redis Extension On WHM Server\" class=\"wp-image-7751\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img1-1.png 411w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img1-1-300x242.png 300w\" sizes=\"(max-width: 411px) 100vw, 411px\" \/><\/figure>\n<\/div>\n\n\n<p>2. Now find the \u201cSOFTWARE\u201d section in the menu bar and expand it; click on \u201cMODULE INSTALLERS.\u201d<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"768\" height=\"539\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img2-1-1.png\" alt=\"How To Install Redis And Php Redis Extension On WHM Server\" class=\"wp-image-7752\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img2-1-1.png 768w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img2-1-1-300x211.png 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n\n\n<p>3. In the \u201cMODULE INSTALLERS\u201d section, click on \u201cMANAGE\u201d infront of the \u2018PHP PECL\u2019 option.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"461\" height=\"324\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img3-1.png\" alt=\"How To Install Redis And Php Redis Extension On WHM Server\" class=\"wp-image-7753\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img3-1.png 461w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img3-1-300x211.png 300w\" sizes=\"(max-width: 461px) 100vw, 461px\" \/><\/figure>\n<\/div>\n\n\n<p>4. You can install Redis PHP extension for all installed PHP versions on your system or install only the active version. We recommend installing for all versions.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"405\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img4-1.png\" alt=\"How To Install Redis And Php Redis Extension On WHM Server\" class=\"wp-image-7754\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img4-1.png 682w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img4-1-300x178.png 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>3,085 Views Redis is an open-source archive data store used as a website, cache, and message vendor that can be used as a drop-in caching back-end for your Drupal or WordPress website. How do Redis caching works? Most web-based frameworks such as WordPress use a database to store in-app internal \u201citems\u201d (menu trees, filter results, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[63],"tags":[181,180,13,162],"class_list":["post-7750","post","type-post","status-publish","format-standard","hentry","category-cpanel-whm","tag-php-redis","tag-redis","tag-server","tag-whm"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=7750"}],"version-history":[{"count":1,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7750\/revisions"}],"predecessor-version":[{"id":7755,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7750\/revisions\/7755"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=7750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=7750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=7750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}