NameCrane Development
Return to Homepage

Getting started with redis

Getting Started with Redis Object Cache (cPanel & DirectAdmin)

Redis (Remote Dictionary Server) is an advanced tool that stores parts of your website’s database in the server’s lightning-fast memory. By enabling it, your website can skip slow database lookups, resulting in much faster load times for your visitors.

Keywords: Redis, Object Cache, PHP Redis Extension, Unix Socket, cPanel, DirectAdmin, Performance, Website Speed.


1. Important: Check Compatibility First

Our Redis implementation is optimized for high performance and security using Unix Sockets rather than standard network ports.

Before you begin, ensure the WordPress plugin or software you plan to use supports Unix Sockets.

  • LiteSpeed Cache (LSCache): Fully supports sockets.
  • W3 Total Cache: Supports sockets.
  • Generic Plugins: If your plugin only asks for an “IP Address” and “Port,” it may not be compatible with this high-speed setup.

2. Step 1: Enable the Redis PHP Extension

Your website’s code needs a specific “driver” to talk to the Redis server.

  1. Log in to your hosting control panel (cPanel or DirectAdmin).
  2. Navigate to Software > Select PHP Version.
  3. Click the Extensions tab at the top.
  4. Locate redis in the list and click the checkbox to enable it. (Note: This happens instantly; there is no save button for this specific list).

3. Step 2: Enable the Redis Service

Now you must start your personal Redis instance.

  1. Navigate to the Redis tool in your panel:
    • cPanel: Go to cPanel > Software > Redis Object Cache.
    • DirectAdmin: Go to DirectAdmin > Extra Features > Redis Object Cache.
  2. Click the Start Redis Object Cache button.
  3. Once the status changes to Running, copy the Socket Path (e.g., /home/username/.redis/redis.sock). You will need this to configure your website.

4. Summary Checklist

To successfully use Redis, ensure:

  • The redis PHP extension is enabled.
  • The Redis service is Running in your control panel.
  • Your website is configured to use the Socket Path as the host.
  • Your website is configured to use Port 0 (required for sockets).

Need help? If your website is still feeling slow, open a support ticket and our team can verify your connection!