{"id":7073,"date":"2023-06-23T09:36:25","date_gmt":"2023-06-23T09:36:25","guid":{"rendered":"https:\/\/infinitivehost.com\/knowledge-base\/?p=7073"},"modified":"2023-06-23T09:36:26","modified_gmt":"2023-06-23T09:36:26","slug":"redis-and-php-redis-on-cpanel","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/redis-and-php-redis-on-cpanel\/","title":{"rendered":"How To Install Redis And Php Redis On cPanel Server ?"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 2,940<\/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<p><strong>How do Redis caching works?<\/strong><\/p>\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 :<\/p>\n\n\n\n<p class=\"has-pale-cyan-blue-background-color has-background\"># 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 has-pale-cyan-blue-background-color has-background\"># 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 has-pale-cyan-blue-background-color has-background\"># systemctl start redis\n\n# systemctl enable redis<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Installing PHP Redis Extenion 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:\/\/infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img1.png\" alt=\"How To Install Redis And Php Redis On Cpanel Server\" class=\"wp-image-7077\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img1.png 411w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img1-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:\/\/infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img2-1.png\" alt=\"How To Install Redis And Php Redis On Cpanel Server\" class=\"wp-image-7079\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img2-1.png 768w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img2-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:\/\/infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img3.png\" alt=\"How To Install Redis And Php Redis On Cpanel Server\" class=\"wp-image-7080\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img3.png 461w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img3-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:\/\/infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img4.png\" alt=\"How To Install Redis And Php Redis On Cpanel Server\" class=\"wp-image-7081\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img4.png 682w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/redis-img4-300x178.png 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>2,940 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":[61],"tags":[112,122,123],"class_list":["post-7073","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-cpaneltutorial","tag-redisinstallation","tag-websiteperformance"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7073","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=7073"}],"version-history":[{"count":1,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7073\/revisions"}],"predecessor-version":[{"id":7088,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7073\/revisions\/7088"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=7073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=7073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=7073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}