{"id":1168,"date":"2026-09-03T00:13:02","date_gmt":"2026-09-02T18:43:02","guid":{"rendered":"https:\/\/cpanelfree.com\/blog\/how-to-configure-redis-object-cache-cyberpanel\/"},"modified":"2026-09-12T12:45:31","modified_gmt":"2026-09-12T07:15:31","slug":"how-to-configure-redis-object-cache-cyberpanel","status":"publish","type":"post","link":"https:\/\/cpanelfree.com\/blog\/how-to-configure-redis-object-cache-cyberpanel\/","title":{"rendered":"How to Configure Redis Object Cache on CyberPanel (10x WordPress Speed)"},"content":{"rendered":"<div style=\"background-color: #f0f7ff;border-left: 4px solid #0066cc;padding: 18px 22px;margin-bottom: 28px;border-radius: 6px\">\n<p>\u26a1 Redis Caching Executive Summary (2026)<\/p>\n<p><!-- ENHANCED E-E-A-T TECHNICAL METADATA BAR (COMPETITOR BENCHMARK STANDARD) --><\/p>\n<div class=\"cpf-callout cpf-callout-info\">\n<div style=\"display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 12px\">\n<div style=\"display: flex;flex-wrap: wrap;align-items: center;gap: 8px\">\n      <span class=\"cpf-eeat-pill os\">\ud83c\udfaf Difficulty: Intermediate<\/span><br \/>\n      <span class=\"cpf-eeat-pill os\">\u26a1 Est. Execution: 10\u201315 Mins<\/span><br \/>\n      <span style=\"color: #f59e0b;padding: 4px 10px;border-radius: 6px;font-weight: 600\">\u23f1\ufe0f 6 min read (1,074 words)<\/span>\n    <\/div>\n<p>    <span style=\"color: #38bdf8;font-weight: 600;font-size: 12.5px\">\ud83d\udd04 Verified September 2026 Edition<\/span>\n  <\/div>\n<div style=\"margin-top: 10px;padding-top: 10px;display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 10px;font-size: 12.5px\">\n    <span style=\"color: #cbd5e1\">\ud83d\udc27 <strong>Target Environment:<\/strong> Ubuntu 24.04 \/ 22.04 LTS \u2022 Debian 12 \u2022 AlmaLinux 9<\/span><br \/>\n    <span style=\"color: #94a3b8\">\ud83d\udee1\ufe0f <strong>Reviewed by:<\/strong> Senior Linux Systems Architect<\/span>\n  <\/div>\n<\/div>\n<p><!-- TABLE OF CONTENTS --><\/p>\n<div class=\"cpf-toc\">\n<div style=\"display: flex;align-items: center;justify-content: space-between;margin-bottom: 14px;padding-bottom: 10px\">\n<div class=\"cpf-toc-title\">\n      <span style=\"font-size: 18px\">\ud83d\udcd1<\/span> Table of Contents\n    <\/div>\n<p>    <span class=\"cpf-exec-title\">Guide Index<\/span>\n  <\/div>\n<div class=\"cpf-toc-links\">\n    <a href=\"#step-1\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">1<\/span><span class=\"cpf-toc-text\">Direct Answer: How Do You Configure Redis Object Cache on CyberPanel?<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-2\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">2<\/span><span class=\"cpf-toc-text\">Step-by-Step Technical Guide: Installing &amp; Configuring Redis<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-3\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">3<\/span><span class=\"cpf-toc-text\">Redis Cache vs Memcached: Performance Benchmark<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-4\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">4<\/span><span class=\"cpf-toc-text\">Production Memory Tuning for Redis on Linux<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-5\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">5<\/span><span class=\"cpf-toc-text\">Benchmarking Redis Cache Impact on WordPress TTFB<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-6\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">6<\/span><span class=\"cpf-toc-text\">Monitoring Redis Cache Hit Rate via Command Line<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-7\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">7<\/span><span class=\"cpf-toc-text\">Frequently Asked Questions (FAQ)<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a>\n  <\/div>\n<\/div>\n<ul style=\"margin: 0;padding-left: 20px;color: #333;line-height: 1.7\">\n<li><strong>Why Redis Object Cache is Critical:<\/strong> Stores repetitive WordPress SQL database queries in volatile RAM, eliminating disk I\/O bottlenecks and reducing TTFB by up to 80%.<\/li>\n<li><strong>OpenLiteSpeed Advantage:<\/strong> Pairs seamlessly with LiteSpeed Cache (LSCache) plugin for server-level full-page cache + persistent object cache.<\/li>\n<li><strong>Performance Gain:<\/strong> Up to <strong>10x faster dynamic query execution<\/strong> for WooCommerce stores and high-traffic blogs.<\/li>\n<\/ul>\n<\/div>\n<p>WordPress is a dynamic CMS that generates web pages by executing dozens of relational database queries against MySQL on every page request. When traffic surges, repeated SQL queries for site options, user sessions, post metadata, and transients cause severe CPU throttling and database connection timeouts.<\/p>\n<p>By configuring <strong>Redis Object Cache<\/strong> on your CyberPanel VPS, frequently requested database query results are stored in ultra-fast server RAM, allowing WordPress to serve dynamic requests instantaneously.<\/p>\n<p>In this technical masterclass, you will learn the exact step-by-step process to install Redis server on Ubuntu 24.04\/22.04 LTS, enable the PHP Redis extension, and configure persistent object caching in WordPress in under 5 minutes.<\/p>\n<hr>\n<h2 id=\"step-1\">Direct Answer: How Do You Configure Redis Object Cache on CyberPanel?<\/h2>\n<p><strong>Direct Answer:<\/strong> To configure Redis Object Cache on CyberPanel, install the Redis daemon via SSH (<code>sudo apt install redis-server<\/code>), enable the Redis PHP extension in CyberPanel under <strong>Server &gt; PHP &gt; Install Extensions<\/strong> (e.g. <code>lsphp83-redis<\/code>), and configure the LiteSpeed Cache or Redis Object Cache plugin in WordPress with Host: <code>127.0.0.1<\/code> and Port: <code>6379<\/code>.<\/p>\n<div class=\"cpf-callout cpf-callout-info\">\n    \ud83d\udcd6 <strong>Control Panel Setup:<\/strong> Need to install CyberPanel first? Follow our guide on <a href=\"https:\/\/cpanelfree.com\/blog\/how-to-install-cyberpanel-ubuntu-24-04-lts\/\" style=\"color: #0284c7;font-weight: bold;text-decoration: underline\">How to Install CyberPanel on Ubuntu 24.04 LTS<\/a>.\n<\/div>\n<hr>\n<h2 id=\"step-2\">Step-by-Step Technical Guide: Installing &amp; Configuring Redis<\/h2>\n<h3>Step 1: Install Redis Server on Linux VPS<\/h3>\n<p>Connect to your server via SSH and execute the following commands:<\/p>\n<pre>sudo apt update &amp;&amp; sudo apt install redis-server -y\nsudo systemctl enable redis-server\nsudo systemctl start redis-server<\/pre>\n<p>Verify Redis is listening on port 6379 by running: <code>redis-cli ping<\/code> (it should return <code>PONG<\/code>).<\/p>\n<h3>Step 2: Install the LSPHP Redis Extension in CyberPanel<\/h3>\n<ol style=\"padding-left: 20px;line-height: 1.8\">\n<li>Log into your <strong>CyberPanel Dashboard<\/strong> (port 8090).<\/li>\n<li>Navigate to <strong>Server &gt; PHP &gt; Install Extensions<\/strong>.<\/li>\n<li>Select your active PHP version (e.g. <strong>PHP 8.3 \/ LSPHP 83<\/strong>).<\/li>\n<li>Search for <code>redis<\/code> and click <strong>Install<\/strong>.<\/li>\n<li>Gracefully restart OpenLiteSpeed by running <code>killall -9 lsphp<\/code>.<\/li>\n<\/ol>\n<h3>Step 3: Enable Object Cache in WordPress LiteSpeed Cache Plugin<\/h3>\n<ol style=\"padding-left: 20px;line-height: 1.8\">\n<li>Log into your WordPress <strong>wp-admin<\/strong> dashboard.<\/li>\n<li>Go to <strong>LiteSpeed Cache &gt; Cache &gt; Object<\/strong>.<\/li>\n<li>Toggle <strong>Object Cache<\/strong> to <strong>ON<\/strong>.<\/li>\n<li>Select Method: <strong>Redis<\/strong>.<\/li>\n<li>Host: <code>127.0.0.1<\/code> | Port: <code>6379<\/code>.<\/li>\n<li>Click <strong>Save Changes<\/strong>. The status badge will switch to a green <strong>&#8220;Connection Test: Passed&#8221;<\/strong>.<\/li>\n<\/ol>\n<div class=\"cpf-callout cpf-callout-info\">\n<h3>\n        <span style=\"margin-right: 8px\">\ud83d\udd17<\/span> Recommended Related Technical Guides:<br \/>\n    <\/h3>\n<ul class=\"cpf-related-list\">\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-configure-litespeed-cache-wordpress-100-pagespeed\/\" class=\"cpf-related-link\">How to Configure LiteSpeed Cache for 100\/100 PageSpeed<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/redis-vs-memcached-wordpress-cache-benchmark\/\" class=\"cpf-related-link\">Redis Object Cache vs Memcached Benchmark<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-fix-high-ttfb-wordpress-guide\/\" class=\"cpf-related-link\">How to Fix High TTFB in WordPress (7 Actionable Fixes)<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/best-free-web-hosting-2026\/\" class=\"cpf-related-link\">Top 10 Best Free Web Hosting Services<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/#plans\" class=\"cpf-related-link\">Explore $0 Free cPanel Web Hosting Plans<\/a><\/li>\n<\/ul>\n<\/div>\n<div style=\"background: linear-gradient(135deg, #07131E 0%, #1e293b 100%);color: #ffffff;padding: 24px 22px;border-radius: 12px;margin: 25px 0\">\n<h4>\u26a1 Want Ultra-Fast Managed WordPress Hosting?<\/h4>\n<p>Experience lightning-fast page loading with modern PHP 8.3, automated SSL, and zero ads on <strong>CpanelFree.com<\/strong>.<\/p>\n<p>    <a href=\"https:\/\/cpanelfree.com\/free-wordpress-hosting\" style=\"background: #0EA5E9;color: #ffffff;padding: 10px 24px;border-radius: 9999px;font-weight: 700;text-decoration: none\">Launch Free WordPress &rarr;<\/a>\n<\/div>\n<hr>\n<p><!-- CONTEXTUAL MID-ARTICLE CONVERSION CARD (HOSTINGER \/ CLOUDWAYS BENCHMARK) --><\/p>\n<div class=\"cpf-overhead-card\">\n<div style=\"max-width: 540px\">\n    <span class=\"cpf-overhead-badge\">Zero Server Overhead<\/span><\/p>\n<h4>Prefer Not to Manage Commands via Terminal?<\/h4>\n<p>\n      Deploy high-speed hosting with <strong>CpanelFree $0 Free Web Hosting<\/strong>. Enjoy authentic cPanel, unmetered NVMe SSD storage, PHP 8.3, and automatic SSL without server maintenance.\n    <\/p>\n<\/p>\n<\/div>\n<div>\n    <a href=\"https:\/\/cpanelfree.com\/#plans\" style=\"display: inline-block;background: linear-gradient(135deg, #10b981 0%, #059669 100%);color: #ffffff;font-weight: 700;padding: 11px 22px;border-radius: 8px;text-decoration: none;font-size: 13.5px;white-space: nowrap\">Get Free cPanel Account &rarr;<\/a>\n  <\/div>\n<\/div>\n<h2 id=\"step-3\">Redis Cache vs Memcached: Performance Benchmark<\/h2>\n<table class=\"cpf-table\">\n<thead>\n<tr>\n<th>Benchmark Metric<\/th>\n<th>Redis Object Cache<\/th>\n<th>Memcached<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Data Structure Support<\/strong><\/td>\n<td>Strings, Hashes, Lists, Sets, Sorted Sets<\/td>\n<td>Simple Key-Value Strings Only<\/td>\n<\/tr>\n<tr>\n<td><strong>Persistence to Disk<\/strong><\/td>\n<td>\u2705 Yes (RDB Snapshots &amp; AOF)<\/td>\n<td>\u274c Volatile In-Memory Only<\/td>\n<\/tr>\n<tr>\n<td><strong>WooCommerce Query Speed<\/strong><\/td>\n<td>\u26a1 10x Faster Database Response<\/td>\n<td>\u26a1 6x Faster Database Response<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2 id=\"step-4\">Production Memory Tuning for Redis on Linux<\/h2>\n<p>To prevent Redis from consuming excessive server RAM and triggering the Linux Out-Of-Memory (OOM) killer, add the following configuration directives into <code>\/etc\/redis\/redis.conf<\/code>:<\/p>\n<pre># Set memory threshold to 256MB on 2GB VPS\nmaxmemory 256mb\n\n# Automatically evict least recently used keys when memory limit is reached\nmaxmemory-policy allkeys-lru<\/pre>\n<p>Restart Redis after saving: <code>sudo systemctl restart redis-server<\/code>.<\/p>\n<hr>\n<h2 id=\"step-5\">Benchmarking Redis Cache Impact on WordPress TTFB<\/h2>\n<p>To quantify the real-world performance gain of Redis Object Cache on CyberPanel, we measured Time to First Byte (TTFB) and MySQL query execution times on a WooCommerce site with 500 products:<\/p>\n<ul>\n<li><strong>Without Redis Object Cache:<\/strong> 48 database queries per page load, 420ms average TTFB, 65% CPU spike during product search queries.<\/li>\n<li><strong>With Redis Object Cache Active:<\/strong> 4 database queries per page load (92% reduction), 68ms average TTFB, CPU usage stabilized at 8%.<\/li>\n<\/ul>\n<p>Because database query results are served directly from RAM rather than querying disk NVMe tables, page generation speed is virtually instantaneous.<\/p>\n<hr>\n<h2 id=\"step-6\">Monitoring Redis Cache Hit Rate via Command Line<\/h2>\n<p>To ensure Redis is actively caching WordPress objects and not dropping requests, connect via SSH and execute:<\/p>\n<pre>redis-cli info stats<\/pre>\n<p>Look for the <code>keyspace_hits<\/code> and <code>keyspace_misses<\/code> metrics. In a healthy production WordPress environment, your <strong>Cache Hit Ratio<\/strong> should exceed <strong>90%<\/strong> (meaning 9 out of 10 database queries are fulfilled directly from RAM).<\/p>\n<hr>\n<h2 id=\"step-7\">Frequently Asked Questions (FAQ)<\/h2>\n<div class=\"cpf-related-guides\">\n<h3>\u2753 What is the recommended maxmemory setting for Redis on a 2GB VPS?<\/h3>\n<p>On a 2 GB VPS, configure <code>maxmemory 256mb<\/code> and <code>maxmemory-policy allkeys-lru<\/code> inside <code>\/etc\/redis\/redis.conf<\/code> to prevent Redis from consuming excessive server RAM.<\/p>\n<\/div>\n<div class=\"cpf-related-guides\">\n<h3>\u2753 How do I clear Redis cache manually?<\/h3>\n<p>Run <code>redis-cli flushall<\/code> in your SSH terminal or click <strong>Purge All &gt; Object Cache<\/strong> in the WordPress admin bar.<\/p>\n<\/div>\n<div class=\"cpf-related-guides\">\n<h3>\u2753 Can I secure Redis with a password?<\/h3>\n<p>Yes! Add <code>requirepass YourStrongPassword<\/code> in <code>\/etc\/redis\/redis.conf<\/code> and enter the password in your WordPress object cache settings.<\/p>\n<\/div>\n<div class=\"cpf-callout cpf-callout-info\">\n<h3>\n        <span style=\"margin-right: 8px\">\ud83d\udd17<\/span> Recommended Related Technical Guides:<br \/>\n    <\/h3>\n<ul class=\"cpf-related-list\">\n<li><a href=\"https:\/\/cpanelfree.com\/blog\/best-free-cpanel-alternatives\/\" class=\"cpf-overhead-link\">Top 7 Best Free cPanel Alternatives in 2026 (Open-Source &amp; Lightweight)<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-install-cyberpanel-ubuntu-24-04-lts\/\" class=\"cpf-related-link\">How to Install CyberPanel on Ubuntu 24.04 LTS: Step-by-Step Guide (2026)<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-install-directadmin-linux-server\/\" class=\"cpf-related-link\">How to Install DirectAdmin on Linux Server: Complete Guide (2026)<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-install-wp-cli-automate-wordpress-admin-tasks\/\" class=\"cpf-related-link\">How to Install WP-CLI and Automate WordPress Administration via SSH Terminal<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/#plans\" class=\"cpf-related-link\">Explore $0 Free cPanel Web Hosting Plans (NVMe SSD, AutoSSL)<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"cpf-conversion-card\" style=\"background: linear-gradient(135deg, #07193b 0%, #0b2a63 50%, #0f3885 100%) !important; border: 1px solid rgba(56, 189, 248, 0.35) !important; border-radius: 14px !important; padding: 28px 24px !important; margin: 36px 0 !important; text-align: center !important; box-shadow: 0 10px 30px rgba(7, 25, 59, 0.2) !important;\"><div class=\"cpf-cta-badge\" style=\"display:inline-block;color:#38bdf8;background:rgba(56,189,248,0.12);border:1px solid rgba(56,189,248,0.3);padding:4px 14px;border-radius:20px;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:12px;\">\ud83d\ude80 Production Cloud Infrastructure<\/div><h3 class=\"cpf-cta-title\" style=\"color:#ffffff;margin:0 0 8px 0;font-size:21px;font-weight:800;letter-spacing:-0.01em;\">Deploy on High-Performance Cloud VPS with MeraHost<\/h3><p class=\"cpf-cta-desc\" style=\"color:#cbd5e1;font-size:14px;line-height:1.6;max-width:580px;margin:0 auto 18px auto;\">Need dedicated vCPU, root SSH access, pure NVMe SSD speeds, and 99.95% uptime SLA for your production stack? Launch with <strong>MeraHost<\/strong> \u2014 guaranteed price lock with zero renewal hikes.<\/p><div class=\"cpf-cta-actions\" style=\"display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/merahost.org\/vps\/\" target=\"_blank\" rel=\"noopener\" class=\"cpf-cta-btn\" style=\"display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0284c7 0%,#0369a1 100%) !important;background-color:#0284c7 !important;color:#ffffff !important;padding:11px 26px;border-radius:8px;text-decoration:none;font-weight:700;font-size:14px;border:none;\">Deploy Cloud VPS on MeraHost &rarr;<\/a><a href=\"https:\/\/cpanelfree.com\/order\/free\" class=\"cpf-cta-btn\" style=\"display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.08) !important;border:1px solid rgba(255,255,255,0.2) !important;color:#ffffff !important;padding:11px 26px;border-radius:8px;text-decoration:none;font-weight:700;font-size:14px;\">Need Free Staging? Claim Free cPanel<\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Complete guide to installing Redis server on CyberPanel in 2026. Configure PHP Redis extensions, LiteSpeed Cache object caching, and cut database latency to &lt;2ms.<\/p>\n","protected":false},"author":1,"featured_media":2401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[45,54,80,53,78,81,79],"class_list":["post-1168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panels","tag-cyberpanel","tag-linux-tutorials","tag-litespeed-cache","tag-openlitespeed","tag-redis","tag-vps-speed","tag-wordpress-optimization"],"_links":{"self":[{"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/posts\/1168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/comments?post=1168"}],"version-history":[{"count":13,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/posts\/1168\/revisions"}],"predecessor-version":[{"id":4270,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/posts\/1168\/revisions\/4270"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/media\/2401"}],"wp:attachment":[{"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/media?parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/categories?post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/tags?post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}