Redis activation on Hawk Host tutorial

Last weekend, Hawk Host launched Redis cache system next to Memcached in Server Application Manager. Today, CouponTree will write a tutorial for you to enable this feature.

Redis is a caching system that stores data on RAM similar to Memcached. Not only does it support keys/values cache as well as Memcached, Redis also supports many other data structures such as hash, list, set, sorted set, string.

Both cache mechanisms are good, support for maximum page load speed, but depending on the actual usage, you select the cache accordingly.

I used to try Redis with WordPress, the first load is very good, but later on the server shows signs of overload, long load, CPU is always operating at a high level, consumes more RAM. I do not understand why. Still, some e-commerce systems, such as Magento, recommend redis as the backend cache.

If you do not have Hawk Host hosting, please register here.

Tutorial to enable Redis cache on Hawk Host

To enable Redis on hosting Hawk Host, follow these steps:

1. Login to cPanel, find the Server Application Manager link in the SOFTWARE section.

2. Click the Enable at Redis line.

3. Wait 5 minutes for the server to start the application. If successful, you will receive the socket path, the Status column to Online status.

4. Activate the PHP module (if it is not already) by going to the Select PHP Version section and enable the redis modules.

Click the Save button to save.

5. Enable the cache mode using Memcached.
Depending on the CMS you are using that different activates. If you use WordPress you should use the LiteSpeed Cache plugin to take advantage of the Hawk Host LiteSpeed Server. (see more cPanel hosting tips).

Next you install the Redis Cache plugin to enable Object Cache with Redis.

Open the wp-config.php file and add the following to the top, following the <? php: line

Note: replace CouponTree with your hosting username.

For example, I enabled both Memcached and Redis:

In the Settings, Redis  menu you click the Enable Object Cache button. If successful, you will get Status: Connected as shown below.

In addition to the two plug-in solutions, you can use the W3 Total Cache plugin, and then enable Redis cache instead of Disk cache mode (for example, Page Cache, Database Cache, Object Cache, Fragment Cache). You then redirects the link to Redis in each configuration page, for example with the Page Cache as shown below:

Remember to press Test to ensure the correct url.

For other systems that will have corresponding instructions, I will not go into detail in this article. If you need more support, please leave a comment below.

Good luck.

Leave a Reply

Your email address will not be published. Required fields are marked *