Managing Redis in DirectAdmin
Summary
This guide explains how to enable, configure, and use Redis caching in DirectAdmin. Redis is an in‑memory data store used to speed up websites, reduce database load, and improve overall performance.
Overview
Redis is commonly used for:
- Object caching (WordPress, Magento, Laravel)
- Session storage
- Queue management
- High‑performance data caching
DirectAdmin provides a simple interface to:
- Enable/disable Redis for your account
- View connection details
- Reset or flush your Redis instance
Requirements
- DirectAdmin user-level access
- Redis enabled by your hosting provider
- A CMS or application that supports Redis
Step-by-Step Instructions
1. Access Redis
- Log in to DirectAdmin
- Go to Advanced Features → Redis
- Select the domain or user account you want to manage
2. Enable Redis
If Redis is not yet active:
- Click “Enable Redis”
- Wait a few seconds for the service to initialize
Once enabled, you will see:
- Hostname (usually 127.0.0.1)
- Port (commonly 6379 or a custom port)
- Password (if your host uses authentication)
3. View Redis Connection Details
The Redis page will show:
- Host
- Port
- Authentication key (if required)
- Status (running / stopped)
Use these details in your CMS or application.
4. Reset / Flush Redis
If your cache becomes corrupted or outdated:
- Click “Flush Redis”
- This clears all cached data
- Your site will rebuild the cache automatically
5. Disable Redis
If you no longer need Redis:
- Click “Disable Redis”
- This stops the service for your account
Common Use Cases
WordPress Object Cache
Use a plugin such as:
- Redis Object Cache
- LiteSpeed Cache (LSCache)
- W3 Total Cache
Typical settings:
Host: 127.0.0.1
Port: 6379
Password: (if provided)
Magento / OpenCart
Redis is used for:
- Sessions
- Cache
- Full‑page caching
Laravel
Add to .env:
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=yourpassword
Troubleshooting
Redis Not Connecting
- Ensure Redis is enabled in DirectAdmin
- Confirm the correct port
- Check if a password is required
- Verify your application supports Redis
WordPress Plugin Shows “Cannot Connect”
- Flush Redis in DirectAdmin
- Disable conflicting caching plugins
- Ensure your host allows local Redis connections
High Memory Usage
- Redis stores data in RAM
- Clear cache or reduce TTL settings in your CMS
Redis Disabled Automatically
- Some hosts disable Redis if memory limits are exceeded
- Contact support if this happens repeatedly
Security Notes
- Redis should only be accessible locally (127.0.0.1)
- Never expose Redis to the public internet
- Use a password if your host provides one
- Flush Redis before major site migrations
Related Articles
- [Web App Firewall](ca://s?q=Web_App_Firewall)
- [Cron Jobs](ca://s?q=Cron_Jobs)
- [Backup & Restore](ca://s?q=Backup_and_Restore)
- [Login Keys](ca://s?q=Login_Keys)
- [SSH Keys](ca://s?q=SSH_Keys)