How To Use Redis With WordPress Hosting? Print

  • Redis, RedisCaching, WordPressOptimization, DatabaseCaching, cPanelHosting, RedisConfiguration, WebHostingTips, PerformanceOptimization, RedisSocket, WebsiteSpeed, WordPressPerformance
  • 0

In this guide, we’ll explore the Redis database and learn how to access it.

When you purchase a hosting plan that includes Redis Caching, a Redis socket is automatically created for your account.
The socket file is located at:

/home/<username>/.redis/redis.sock

When setting up Redis for your WordPress site, make sure to use socket mode and provide the path shown above.
Disable any TCP or port configurations (such as PORT 6379), as all communication with the Redis database will occur through the socket.

Each cPanel account is configured to support up to 20 Redis databases, numbered from 0 to 19.
By default, database 0 is used.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution