Author Archives: Arun

How to configure Redis Object Cache in WordPress

There are a number of plugins that permit configuring Redis as Object Cache for your WordPress website, thereby enhancing its performance. In this article, we discuss LiteSpeed Cache for WordPress, also known as LSCWP, and Redis Object Cache plugins.

Before beginning this tutorial, it is assumed that Redis has been enabled in cPanel. If not, please read this article to get started.

Also, make a note of the Redis socket path and port displayed in the cPanel >> Redis Manager Plugin.

Configuring Redis in LiteSpeed Cache for WordPress (LSCWP) plugin

If you are using Lite Speed Cache for WordPress (LSCWP) plugin, navigate to Cache settings on the left menu and select [6] Object tab.

LSCWP Object cache configuration with Redis

LSCWP Object cache configuration with Redis

Ensure settings are made as above in your setting page, i.e.

  1. Turn ON Object Cache.
  2. In the Status box below, if you have already enabled the PHP Redis module, it will show Redis Extension as Enabled. If it shows Disabled, ensure it’s enabled in cPanel >> Select PHP version for the selected PHP version.
  3. Choose Method as Redis next.
  4. The Host is the socket path you have copied from the cPanel Redis Manager plugin.
  5. Port is always 0 as you are using a Unix Socket connection, not HTTP.
  6. Redis Database ID should be unique if you have multiple WordPress or other CMS configured with the Redis instance you have for your cPanel account. i.e., for the first website, default 0 is used. On the next website, you should use it as 1 or any value up to 7 but not 0. This is to avoid potential cache conflicts. You can use up to 8 databases in total for a cPanel account.
  7. Scroll down a bit and ensure “Persistent Connection” and “Store Transients” are set to ON
  8. Click “Save Changes”
LSCWP Object cache configuration with Redis

LSCWP Object cache configuration with Redis

Once saved, you should see “Connection Test”  as passed in the Status box. If it shows failed, ensure Host is correct and is added without any spaces. If the issue persists, let us know.

For more details on LSCWP configuration, you can also check out the official page here.

Configuring Redis using the “Redis Object Cache” plugin

Once logged in as administrator to your WordPress installation, go to plugins >> Add New and search for the “Redis Object Cache” plugin. Locate the Redis Object Cache as in the screenshot below, and then click Install Now. 

Redis Object Cache plugin for WordPress

Redis Object Cache plugin for WordPress

Once installed, click Activate and you will be presented with a screen as below.

Redis Object Cache plugin activation page

Redis Object Cache plugin activation page

Before clicking “Enable Object Cache”, open wp-config.php in your favorite text editor or editor in the cPanel file manager and add these two lines just above the /* “That’s all, stop editing! Happy publishing. */ line near the end of the file.

​define( 'WP_REDIS_SCHEME', 'unix');
define( 'WP_REDIS_PATH', '/home/username/redis/redis.sock');

Replace the username with the cPanel username and save the changes.

On WordPress, on the Redis Object Cache page, click Enable Object Cache. When you see green checkmarks for Status, Drop-in, and File system, Redis is activated and running for WordPress.

There are no other configurations required to take advantage of performance improvements from Redis caching, and it works flawlessly with other caching plugins. The following options are available in the plugin interface:

  1. To view Redis caching statistics for your website, click the Metrics tab.
  2. To view configuration and debugging information in greater detail, select the Diagnostics tab.
  3. To clear the Redis cache, click the Flush Cache button.
  4. Click Disable Object Cache to disable Redis caching.

More options to add Redis to your WordPress

While the above are commonly used plugins, there are several other plugins like W3TC, WP-Redis which also do the Redis integration. If you are using a different one and need assistance or an article regarding it, mention it in the comment section below.

Conclusion

Adding Redis Object Caching to WordPress sites is beneficial in terms of performance on the website. This article sheds light on configuring Redis object cache on your WordPress website using the two most widely used plugins – LSCWP and Redis Object Cache, which undoubtedly enhances caching and performance. 

How to Add New Domain in Jupiter cPanel Theme

The Jupiter theme has been launched by cPanel, as the old Paper Lantern theme is going EOL. The Domains options have been updated and reduced with the most recent cPanel update. With the Jupiter theme, the Add-on Domains and Sub Domains options have been removed and combined into Domains.

Let’s see how to add a new domain in the Jupiter cPanel theme from the Domains option, which is becoming a standard option moving forward.

Domain section in jupiter theme cpanel

Domain section in Jupiter theme cPanel

When you navigate to Domains, you need to click on the blue button at the top right with the text “Create A New Domain”.

list domains in domain section jupiter theme cpanel

list domains in domain section Jupiter theme cPanel

How to Add New Addon Domain in Jupiter cPanel Theme

Adding addon domain in Jupiter theme cPanel

Adding addon domain in Jupiter theme cPanel

Steps

  1. In the “Domain” text box, type the name of the domain you want to add.
  2. Uncheck the option that says “Share document root (/home/username/public html) with “domain.tld”.”
  3. Enter the directory where you want the files for this domain to be.
  4. Click the button that says “Submit“.

Note: After adding a domain name, the system will point it to the public html directory by default. After entering the domain name, de-select the option “Share document root (/home/username/public html) with “primarydomain.com” to direct it to a separate folder or directory.

When unchecked, the choice for subfolder name will become available. You can keep the domain name or change it to any name of your choice. It is recommended to keep it with the domain name to prevent accidental deletion.

How to Add New Subdomain in Jupiter cPanel Theme

adding sub domain Jupiter theme cPanel

adding sub domain Jupiter theme cPanel

Steps

  1. In the “Domain” text box, type the name of the subdomain you want to add.
  2. Uncheck the option that says “Share document root (/home/username/public html) with “domain.tld”.”
  3. Enter the name of the directory where the files for this subdomain will exist.
  4. Click the button that says “Submit.”

How to Add New parked / alias domain in Jupiter cPanel Theme

adding parked domain Jupiter theme cPanel

adding parked domain Jupiter theme cPanel

Steps

  1. Enter the domain name you want to use as an alias in the “Domain” text box.
  2. Make sure that “Share document root (/home/username/public html) with “domain.tld”” is selected.
  3. Click the button that says “Submit.”

In this way, we can add an addon domain, subdomain, or parked domain while you are using the new “Jupiter” theme in the cPanel.  The current commonly used theme “PaperLatern” will be removed in a couple of months. We request everyone to move to the new theme and experience the new layout.

Conclusion

Congratulations you have now familiarized yourself with the new cPanel theme Jupiter.