Skip to Content
Shared hosting (cPanel)Using cPanelSoftware

Enable Redis with Illevante Redis

Illevante Redis is a tool inside cPanel that creates a private Redis server for your account, isolated from other accounts and protected by an automatically set password. Redis is used as an ultra-fast in-memory cache (RAM) that holds database query results, sessions and frequently used data instead of recalculating them on every visit.

Why Redis?

  • Faster dynamic sites: Reduces the load on your database for online stores, membership sites and high-traffic sites.
  • Session storage: Faster, more reliable sessions than file-based storage.
  • Your own server: A separate instance for each account, with its own port and password, so no one else shares its data.
  • Ready-made setup for popular applications: Presets and ready-to-use connection code for WordPress, Laravel, Magento, PHP, Node.js, Python and LiteSpeed Cache.
  • Monitoring and backups: Live performance metrics, a health score, and one-click backups.

Enable Redis

Log in to cPanel, go to the Software section (1), and click the cPanel Redis Manager tool (2).

The cPanel Redis Manager tool in the Software section of cPanel

Tip

You can also type redis into the Search Tools box at the top of the cPanel page to go straight to the tool.

The Illevante Redis page opens. If Redis isn't enabled on your account yet, the status shows OFFLINE (1) with the message SERVER OFFLINE. Click INITIALIZE SERVER (2).

The Illevante Redis page before activation: OFFLINE status and the INITIALIZE SERVER button

Wait a few seconds for initialization to finish. When it succeeds, the status changes to ONLINE with a Health Score out of 100 (1), and STATUS shows OPERATIONAL (2) in the SERVER CONFIGURATION section.

Redis after activation: ONLINE status and server details

This section shows your server's details:

  • CACHE BACKEND: The caching engine (Redis).
  • HOST: The server address, which is always 127.0.0.1 (it runs locally on the hosting server itself).
  • PORT: The port assigned to your account (it differs from one account to another).
  • AUTH KEY: The Redis password. Click SHOW to reveal it or COPY to copy it (3).
  • MEMORY ALLOC: The amount of memory allocated to Redis.
  • DATABASES: The number of Redis databases available.

Confirm the setup is complete in the SETUP PREFLIGHT section at the bottom of the page: all three items should show a green check mark (1):

  • INSTANCE INITIALIZED: The server has been initialized.
  • INSTANCE RUNNING: The server is running.
  • AUTHENTICATION CONFIGURED: The password is set.

The SETUP PREFLIGHT section after activation is complete

Warning

The Redis password (AUTH KEY) grants full access to your account's cache data. Don't share it with anyone, and don't publish it in public code repositories.

Connect your site to Redis

Enabling Redis alone isn't enough; your application has to connect to it. The CONNECTION WIZARD section gives you everything you need:

The CONNECTION WIZARD with ready-made connection code

  1. Connection details: The HOST, PORT and PASSWORD, each with a copy button next to it.
  2. Application tabs: Choose your application: WordPress, Laravel, Magento, PHP, Node.js, Python or LSCache (the LiteSpeed Cache plugin).
  3. Copy button: Copies the ready-made configuration code. The code already contains your account's port and password, so you don't need to edit it.

In the WORDPRESS tab of the connection wizard, click Copy to copy the code. It looks like this:

define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PORT', 54015);            // your account's port
define('WP_REDIS_PASSWORD', 'your-password'); // your account's password
define('WP_CACHE', true);

Open the File Manager in cPanel and edit the wp-config.php file in your site's directory (usually public_html). Paste the code before the line:

/* That's all, stop editing! Happy publishing. */

From the WordPress dashboard, install and activate the Redis Object Cache plugin, then go to Settings → Redis and click Enable Object Cache. The status should show Connected.

Note

The MAGENTO, PHP, NODE.JS and PYTHON tabs in the connection wizard show ready-made code in the same way. For PHP, Node.js and Python, the example includes a ping command to verify that the connection works.

If you use AccelerateWP

The Object Caching feature in AccelerateWP manages its own Redis instance. Don't enable another Redis plugin on the same site alongside it; choose one method per site to avoid conflicts.

Application detection

The APPLICATION DETECTION section scans your public_html directory for supported applications, such as WordPress, and lists what it finds to make connecting them easier. If you see No supported applications detected, no supported application was found, and you can connect manually through the connection wizard as described above.

Configure Redis settings

In the INSTANCE CONFIGURATION section, you can tune Redis's behavior to suit your application:

The INSTANCE CONFIGURATION section with presets and advanced options

  1. Presets: Buttons that fill in the fields with values suited to each type of use:

    PresetEviction policyDatabasesTimeout (seconds)Max connections
    WordPressallkeys-lfu2300100
    Laravelvolatile-lru40200
    Magentoallkeys-lru80500
    Session Cachevolatile-ttl2180050
    Genericallkeys-lfu50100
  2. Basic settings:

    • MAX MEMORY: The maximum memory Redis can use (for example, 1536mb).
    • EVICTION POLICY: What Redis does when memory is full. For example, allkeys-lfu removes the least frequently used keys, allkeys-lru removes the least recently used keys, volatile-ttl removes the keys closest to expiring, and noeviction rejects new writes instead of removing anything.
    • TIMEOUT (SEC): Closes idle connections after the specified number of seconds (0 means they are never closed).
  3. ADVANCED: Shows additional options:

    • MAX CLIENTS: The maximum number of simultaneous connections (1 to 10000).
    • PERSISTENCE: Off for memory-only storage (the fastest), or On (AOF) to write every command to disk so the data survives a restart.
    • DATABASES: The number of Redis databases (1 to 16).
  4. APPLY CONFIG: Click it to save your changes. Clicking a preset button only fills in the fields; nothing is applied until you click this button.

Tip

For most WordPress sites, just click WORDPRESS and then APPLY CONFIG. Leave PERSISTENCE set to Off if you're using Redis purely as a cache, since cached data is rebuilt automatically.

Monitor performance

Smart suggestions and quick metrics

The SMART SUGGESTIONS section shows automatic alerts and recommendations about your server's state, such as Instance restarted recently — monitor for instability after a recent restart. Below it are three quick cards: LATENCY, CONNECTIONS and MEMORY USE, along with the time of the LAST HEALTH CHECK.

The SMART SUGGESTIONS section and quick metrics

Instance monitoring

The INSTANCE MONITORING section shows detailed metrics:

  • LATENCY: The round-trip response time to your server.
  • CONNECTIONS: The number of currently open connections.
  • MEMORY USED / MEMORY PEAK: Current memory use and the highest recorded use, compared with the allowed limit.
  • HIT RATIO: The percentage of requests found in the cache. The higher it is, the more useful Redis is for your site.
  • TOTAL COMMANDS: The number of commands executed since startup.
  • UPTIME: How long the server has been running continuously.
  • LAST SAVE: The time of the last saved data snapshot.

Below that is the TREND HISTORY: charts of memory use, connections, and Cache Hits vs Misses, in a 24H view (hourly) or a 7D view (every six hours).

The INSTANCE MONITORING section and trend history

Note

The charts appear after the first hourly snapshot, so they may look empty for the first few minutes after activation.

Backup and restore

In the BACKUP & RESTORE section, click TAKE BACKUP NOW (1) to save a copy of your Redis data. The tool automatically keeps the latest 5 backups.

The BACKUP & RESTORE section

To restore a backup, click Restore next to it in the list, then confirm. During the restore, Redis stops, the data files are replaced, and Redis restarts. A snapshot of the current data is saved before it is replaced.

Stop Redis

To stop the Redis server, click TERMINATE SERVER in the SERVER CONFIGURATION section (marker 4 in the screenshot for the third activation step). The status then returns to OFFLINE, and you can enable it again later with the INITIALIZE SERVER button.

Warning

Before stopping Redis, turn off its use on your site first (for example, disable Object Cache in WordPress, or set CACHE_DRIVER in Laravel back to its previous value); otherwise, your site will show connection errors.

Troubleshooting

How is this guide?

On this page