Configuring Joomla to use Redis
Redis is an open‑source memory object caching system that stores frequently accessed data in RAM. By integrating Redis with Joomla, you can significantly improve site performance and reduce database load. On ruachost.com, Redis is available on Managed VPS accounts. Contact Ruachost support to check availability on your shared hosting plan.
Why Use Redis with Joomla?
Section titled “Why Use Redis with Joomla?”- Accelerates page load times by caching database queries and API calls.
- Reduces server resource usage.
- Improves scalability for high‑traffic Joomla sites.
- Provides persistent caching across sessions.
Prerequisites
Section titled “Prerequisites”- A hosting plan with Redis enabled (for example, a Managed VPS).
- Redis service enabled on your server.
- Joomla version 4 or later recommended.
Steps to Enable Redis in Joomla
Section titled “Steps to Enable Redis in Joomla”Step 1: Log in to Joomla
Section titled “Step 1: Log in to Joomla”- Log in to your Joomla site as the administrator.
- In the left sidebar, click System.
- Under Setup, click Global Configuration.
Step 2: Configure Redis Session Handler
Section titled “Step 2: Configure Redis Session Handler”-
Click the System tab.
-
In the Session section, locate Session Handler.
-
Select Redis from the dropdown list.
-
Configure Redis connection settings:
-
Redis Server Host/Sock →
- For Managed VPS/Dedicated:
localhost - For shared hosting (where Redis is enabled):
/home/username/.redis/redis.sock(replaceusernamewith your hosting account username)
- For Managed VPS/Dedicated:
-
Redis Server Port →
6379
-
-
Click Save & Close.
Step 3: Verify Redis Integration
Section titled “Step 3: Verify Redis Integration”- Clear Joomla cache.
- Test site performance and confirm sessions are stored in Redis.
- If Redis is not working, check server logs or Contact us.
Important Notes
Section titled “Important Notes”- Redis is not available on every shared hosting plan. Contact Ruachost support to confirm for your account.
- Always back up your site before making configuration changes.
- For unmanaged VPS accounts, you must install and configure Redis manually.
- Redis can also be used for object caching in addition to session handling.