Advanced Features

Redis Caching

Redis in Vanta Panel: one shared server-wide instance on 127.0.0.1:6379, how admins enable it per account, and how PHP, WordPress and Java apps connect.

Updated 5 min read Jump to docs navigation

On this page 9 sections
  1. Prerequisites
  2. What the panel provisions
  3. Install it server-wide (administrator)
  4. Enable it for an account (administrator)
  5. Activate and connect (account)
  6. Connecting from your application
  7. Good practice on a shared instance
  8. Troubleshooting
  9. FAQ

Redis in Vanta Panel is a single, server-wide redis-server instance that the panel installs from the operating-system package and exposes to the hosting accounts you choose. There are no per-account Redis instances, no password or ACLs, and no memory limit set by the panel: it listens on 127.0.0.1 port 6379 and is reachable only from the server itself. An administrator turns it on per account in vWHM; the account then sees the connection details on its Java Apps page in vPanel.

Prerequisites

  • vWHM admin access. Redis is opt-in per account and off by default.
  • The server must be able to install packages with apt (Ubuntu 22.04+ / Debian 12+).
  • For the account to see the Redis section in vPanel, Java hosting must also be enabled for it, because the section lives on the Java Apps page — see Java Apps.

What the panel provisions

ItemValue
Packageredis-server from the OS repository, enabled and started as the redis-server systemd service
InstancesOne shared instance for the whole server
Host / port127.0.0.1 / 6379
AuthenticationNone — loopback only, not exposed to the network
Memory limit, persistenceNot managed by the panel; the package defaults apply
Per-account switchA redis_enabled flag on the account, off by default

Install it server-wide (administrator)

  1. Open vWHM → Java Apps. The runtime list has a Redis row reading "Not installed — install it server-wide".
  2. Click Install Redis. On success: "Redis installed (version) — running at 127.0.0.1:6379. Enable it per account to expose it in their panel."
  3. The row now reads "127.0.0.1:6379 · one shared instance" with a running or stopped pill. The install is logged as redis.install in the Audit Log.

Enable it for an account (administrator)

  1. Open vWHM → Accounts and click the account.
  2. Find the Redis (in-memory cache) card. Status shows Redis enabled or Redis disabled, plus "server: installed" once the package is present.
  3. Click Enable Redis. You will see "Redis enabled for username." — with "Redis was installed on this server (version)." appended if this was the first use. The change is logged as account.redis.
  4. Disable Redis hides the section from the customer's panel. It does not stop or remove the server, and other accounts keep working.

Activate and connect (account)

  1. In vPanel open Java Apps. This needs Java hosting enabled for the account and the Java runtime activated (Activate Java).
  2. A Redis panel appears with a running/stopped indicator. If the server package is missing you will see Activate Redis; click it. Success reads "Redis installed (version). Apps can connect at 127.0.0.1:6379."
  3. Once installed the panel shows: "Connect your apps to Redis at host 127.0.0.1, port 6379 (no password — reachable only from this server)."

Connecting from your application

StackSettings
PHP (phpredis)$redis = new Redis(); $redis->connect('127.0.0.1', 6379);
WordPress (Redis Object Cache plugin)In wp-config.php: define('WP_REDIS_HOST', '127.0.0.1'); and define('WP_REDIS_PORT', 6379);
Spring Bootspring.data.redis.host=127.0.0.1 and spring.data.redis.port=6379
Node / PythonHost 127.0.0.1, port 6379, no password

The panel installs only the Redis server, not PHP extensions — check that your selected PHP version has the redis extension before relying on phpredis. Services from Java Apps and Apache Kafka use the same loopback address.

Good practice on a shared instance

Vanta Panel gives every enabled account the same instance, so:

  • Give every site its own key prefix (for the WordPress plugin, set WP_CACHE_KEY_SALT) so two apps cannot overwrite each other's keys.
  • Because there is no password, every account on the server can reach the instance. Cache and session data only — never secrets.
  • Redis holds data in memory. Anything you cannot afford to lose belongs in MySQL; account Backups do not include Redis.

Troubleshooting

Symptom or messageCause and fix
Redis is not enabled for this account. Contact your administrator.The admin must click Enable Redis on the account in vWHM.
No Redis section in vPanelJava hosting is not enabled, the Java runtime is not activated, or Redis is disabled for the account.
Could not install Redis: … / Redis install failed: …apt-get install redis-server failed; the message carries apt's detail. Fix repositories or free disk space and retry.
Pill shows stoppedThe service is not running. Over SSH as root run systemctl restart redis-server, then redis-cli -h 127.0.0.1 ping should answer PONG. Redis is not listed on the vWHM Services page.
App cannot connectUse 127.0.0.1 and 6379 with no password. Remote hosts cannot connect; the panel does not open the port.

FAQ

Is Redis included in the licence?

Yes. It is a per-account toggle with no extra fee and no licence check on the switch, on every plan including Free.

Can I run a private Redis instance per account?

Not from the panel. Vanta Panel manages one shared server-wide instance.

Can I set a password or a memory limit?

Not from the panel. A root user can edit the package's configuration over SSH; the panel never rewrites it.

Does disabling Redis delete my data?

No. Disabling only hides the section from that account's panel; the server keeps running.

Something missing or out of date? Ask support, or try it yourself on the live demo.