Please note that the actual configuration of your site to use Redis is out of scope of this article. 

If using WordPress, you may use the following to configure Object Caching in the LSCache module. 

 

Getting your Redis Details in DirectAdmin

First, login to your Web Control Panel with your username and password. 

Navigate to 'Advanced Features', then 'Redis'

7de05407a15672dcf007c6174ba1409a7bb66cb26beb04ac0e6c7c4c9c11a0146a701e0d5c81895d?t=160a2a760663d6a4fc0f110ed90289d0

Click the 'Disabled' toggle to enable Redis for your account, then copy the Redis Socket File path.

029b70b43bf6085c6d7edd0a5d92a659813dbf761f670b91a02047f782ccebb65c1528ffc5b5fb28?t=bbc2c262301ea581c6789431b4348bf6

 

You can now use this in your application. Note that if your application uses PHP, you may need to enable the Redis PHP extension, as below:

 

Navigate to 'Extra Features', then to 'Select PHP Version'

5be9e5784e9f606d25293be41c48a15fb59d397b332f029a12fc4b30c1aa1b0983443b0055751c79?t=2edf7fa6c3f1c322ef3b687cf6bff629

 

Ensure that the 'redis' extension is enabled by ticking the box:

e2d55a63a215aeeb91b880f10e87e11932772ac608d4f2971005406d366f10afeca53f20e328fe66?t=1919f369a9f12182db3949e0c7ae7dce