25% OFF!

Use code 25OFFER at checkout.
Sign up Login

How do I enable and use Redis? Print

  • enable redis, cpanel, directadmin, use redis, redis, object caching, litespeed cache
  • 21

How do I enable and use Redis?

 

What is Redis?

Redis is a super-fast, in-memory database that stores data in a key-value format, making it quick to access. It's often used for object caching, real-time applications, and quick data lookups. Redis is versatile, supporting various data types like lists and sets, and offers features like replication and persistence to ensure data durability and reliability.

 

Enabling and using Redis

Enabling Redis depends on the control panel you are using with SimpleSonic. Below are instructions for enabling on our cPanel and DirectAdmin servers:

 

cPanel

Note: Before using Redis on our cPanel servers, you will need to open a ticket with our support team and request Redis be enabled for your account. Make sure to specify the account username you would like Redis enabled for. Our support team will then enable Redis which will create a Redis socket specific to your account.

 

Enable Redis PHP Extension

Make sure the Redis PHP Extension is enabled for your PHP version:

Go to "Select PHP Version"

In "PHP Extensions", make sure the "Redis" PHP extension checkbox is selected. If it is not, simply click the checkbox to enable.

 

Enable Redis In Your Application

To enable Redis in your application (such as LiteSpeed Cache Object Caching), you will need to use the following information:

Host/Socket: /tmp/redis.sock
Port: 0

Note: If using Redis for multiple domains in your account, make sure each has a unique "Database ID" in your application.

 

 

DirectAdmin

 

Enabling a Redis Socket In DirectAdmin

In the "Advanced Features" menu, click "Redis"

Click "Enable" to enable the Redis socket

Note the "Path to redis socket file" as this will be used later

 

Enable Redis PHP Extension

Make sure the Redis PHP Extension is enabled for your PHP version:

Go to "Select PHP Version"

In "PHP Extensions", make sure the "Redis" PHP extension checkbox is selected. If it is not, simply click the checkbox to enable.

 

Enable Redis In Your Application

To enable Redis in your application (such as LiteSpeed Cache Object Caching), you will need to use the following information:

Host/Socket: This will be the "Path to redis socket file" as noted earlier
Port: 0

Note: If using Redis for multiple domains in your account, make sure each has a unique "Database ID" in your application.

 

That's it! Redis is now enabled!

 

 

 

 


Was this answer helpful?

« Back