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.
On this page 9 sections
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
| Item | Value |
|---|---|
| Package | redis-server from the OS repository, enabled and started as the redis-server systemd service |
| Instances | One shared instance for the whole server |
| Host / port | 127.0.0.1 / 6379 |
| Authentication | None — loopback only, not exposed to the network |
| Memory limit, persistence | Not managed by the panel; the package defaults apply |
| Per-account switch | A redis_enabled flag on the account, off by default |
Install it server-wide (administrator)
- Open vWHM → Java Apps. The runtime list has a Redis row reading "Not installed — install it server-wide".
- 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."
- The row now reads "127.0.0.1:6379 · one shared instance" with a running or stopped pill. The install is logged as
redis.installin the Audit Log.
Enable it for an account (administrator)
- Open vWHM → Accounts and click the account.
- Find the Redis (in-memory cache) card. Status shows Redis enabled or Redis disabled, plus "server: installed" once the package is present.
- 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. - 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)
- In vPanel open Java Apps. This needs Java hosting enabled for the account and the Java runtime activated (Activate Java).
- 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."
- 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
| Stack | Settings |
|---|---|
| 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 Boot | spring.data.redis.host=127.0.0.1 and spring.data.redis.port=6379 |
| Node / Python | Host 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 message | Cause 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 vPanel | Java 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 stopped | The 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 connect | Use 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.