{"id":4510,"date":"2019-05-06T12:29:16","date_gmt":"2019-05-06T06:59:16","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=4510"},"modified":"2026-10-20T11:41:20","modified_gmt":"2026-10-20T06:11:20","slug":"wordpress-redis-caching-centos-7-6","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/wordpress-redis-caching-centos-7-6\/","title":{"rendered":"How to Setup WordPress with Redis Caching on CentOS 7.6"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Post Date: May 06, 2019<br>Last Updated: October 20, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress Redis Caching is an effective way to improve website performance by storing frequently accessed data in memory. As website traffic increases, repeated database queries can affect loading times and server resources. Redis helps reduce this overhead by providing fast in-memory object storage. In this tutorial, we will explain how to set up WordPress Redis Caching on CentOS 7.6, install the required PHP extension, and configure the Redis Object Cache plugin to improve WordPress performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before setting up Redis caching for WordPress on CentOS 7.6, ensure you have the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A server running CentOS 7.6 with root or sudo access.<\/li>\n\n\n\n<li>A working WordPress installation.<\/li>\n\n\n\n<li>PHP installed and compatible with your WordPress installation.<\/li>\n\n\n\n<li>Access to the server terminal through SSH.<\/li>\n\n\n\n<li>The required Redis server and PHP Redis extension packages.<\/li>\n\n\n\n<li>Access to the WordPress dashboard with administrator privileges.<\/li>\n\n\n\n<li>A backup of your website and database before making configuration changes.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Note: CentOS 7 has reached its end of life. For production environments, consider using a supported operating system and compatible software versions<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation: WordPress Redis Caching on CentOS 7.6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, we will explain, how to setup WordPress with Redis Caching with simple steps. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. Install Redis on CentOS 7.6<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">yum install redis<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Start and enable Redis on system boot:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">systemctl start redis.service\nsystemctl enable redis.service<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.Install the PHP Redis Extension<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">yum install php-pecl-redis<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3.Install the Redis Object Cache Plugin<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress Dashboard &gt;&gt; Go to Plugins &gt; Add new<br>Search for <strong>Redis<\/strong>&nbsp;and install the&nbsp;<strong>Redis Object Cache<\/strong><br>Go to Plugins again and enable the <strong>Redis Object Cache <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"440\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-06-at-10.53.15-AM-1024x440.png\" alt=\"\" class=\"wp-image-4518\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-06-at-10.53.15-AM-1024x440.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-06-at-10.53.15-AM-300x129.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-06-at-10.53.15-AM-768x330.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-06-at-10.53.15-AM.png 1277w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Go to Settings &gt; Redis and click on <strong>Enable Object Cache<\/strong>  <br>The default configuration should work out of the box since the default Redis listening address is <code>127.0.0.1<\/code>&nbsp;and the default listening port is&nbsp;<code>6379<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress Redis Caching on CentOS 7.6 can improve website responsiveness by storing frequently accessed objects in memory and reducing repeated database queries. By installing Redis, enabling the PHP Redis extension, and configuring the Redis Object Cache plugin, you can implement persistent object caching for your WordPress website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Always verify the cache connection, monitor performance, and secure Redis against unauthorized access. Since CentOS 7 is no longer supported, consider migrating production websites to a supported operating system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To protect your website, read the official <a href=\"https:\/\/redis.io\/docs\/latest\/operate\/oss_and_stack\/management\/security\" target=\"_blank\" rel=\"noopener\">Documentation Link<\/a> and ensure Redis is not exposed to untrusted public connections.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For assistance with WordPress hosting, server optimization, or caching configuration, contact <a href=\"https:\/\/pheonixsolutions.com\/contact\">pheonixsolutions.com<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. What is Redis caching in WordPress?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis caching is a technique that stores frequently accessed WordPress objects in memory, reducing repeated database queries and helping improve website performance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. What are the benefits of using Redis caching with WordPress?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis caching can reduce database load, improve response times, and help WordPress handle frequent requests more efficiently.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.Which port does Redis use by default?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis uses TCP port <code>6379<\/code> by default. When Redis and WordPress are installed on the same server, the default local address is typically <code>127.0.0.1<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-recaptcha-in-wordpress\/\">How to Install reCAPTCHA in WordPress<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-reset-the-wordpress-password-in-mysql\/\">How to reset the WordPress password in Mysql<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Need Help with WordPress and Redis Caching?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Need help with WordPress configuration, Redis caching setup, or website performance optimization? Our experts can assist with WordPress development, server administration, caching solutions, DevOps, cloud hosting, and other technical requirements. Get in touch with our team <a href=\"https:\/\/pheonixsolutions.com\/contact\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: May 06, 2019Last Updated: October 20, 2026 Introduction WordPress Redis Caching is an effective way to improve website [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[475,167],"class_list":["post-4510","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-redis","tag-wordpress-2","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1aK","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=4510"}],"version-history":[{"count":3,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4510\/revisions"}],"predecessor-version":[{"id":12386,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4510\/revisions\/12386"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}