Performance Improvements to Enable in cPanel

Performance Settings in cPanel

Heads up: This page may include affiliate links. Read the full disclosure.

Some unmanaged hosts provide cPanel on their hosting plans, or you might have some client sites hosted on a VPS with cPanel. cPanel includes many performance options built-in and supported that you may not be aware of.

Make sure that server-side compression of assets is enabled in cPanel this will use the mod_deflate module in Apache.

You can select to have all content compressed or specify which MIME type should be compressed. Smaller site assets being server-side compressed will improve your site’s front-end performance.

The compression settings will be saved into the site’s .htaccess file. Also, relating to .htaccess settings, make sure that browser caching is enabled. Browser caching would be for locally caching site assets, improving the site’s load times for a visitor.

EasyApache 4 supports containers if your OS on the server is AlmaLinux or Ubuntu. This means that you can run Redis in a container in EasyApache 4.

Once you have Redis running in a container, you need to add the Redis IP and port as constants into your site’s wp-config.php file and install the Redis Object Cache plugin.

Redis object caching helps take the load of the site’s database and can help a dynamic site’s performance.

Also make sure you use MariaDB and have updated it to the latest version.

Redis object caching works with a full-page caching plugin since it would be caching a different type of data. A few plugins contain Redis integration, such as W3 Total Cache or LiteSpeed Cache.

NGINX caching is officially supported in cPanel and can be enabled either from the script or in WHM’s NGINX Manager interface or the EasyApache 4 interface.

NGNIX would be used as a reverse proxy in front of Apache and will help speed up the front-end performance by caching assets on the server, and it will help reduce the load on the server resources.

Here’s the command to install NGINX;

yum install ea-nginx

After NGNIX is installed, then you can clear the cache and restart NGINX from the NGINX Manager.

NGINX Manager

Many of these performance changes are straightforward to implement and will have a knock-on effect of keeping server resource usage down and will help improve the performance of your sites.

Useful Links

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys