Call us
Designing

10 Cpanel Settings to Turbocharge Your WordPress Website's Performance

"Boost your WordPress site's speed and efficiency with our expert guide on 10 essential Cpanel settings for optimal performance, backed by Cpluz's web development expertise."


4 min readCpluz

10 Cpanel Settings to Turbocharge Your WordPress Website's Performance

Optimizing your Cpanel settings can significantly enhance the performance of your WordPress website. By correctly configuring various Cpanel parameters, you can ensure faster loading times, improved security, and better overall efficiency. In this article, we will delve into ten essential Cpanel settings that can turbocharge your WordPress website's performance and guide you through the process of implementing these changes.

1. PHP Version

The PHP version installed on your server plays a crucial role in determining your website's performance. It is essential to use the latest PHP version, as it often includes performance enhancements and bug fixes. Navigate to the Software section in your Cpanel and click on the Select PHP Version icon. From there, choose the latest PHP version available and apply the changes.

2. Max Execution Time

The max execution time setting determines the number of seconds a PHP script can run before it gets terminated. To avoid your website from being forcefully stopped during long-running processes, increase the max execution time. Go to the Software section in your Cpanel, click on the MultiPHP INI Editor icon, and set the 'max_execution_time' value to a higher number, such as 300.

3. Memory Limit

The memory limit setting restricts the amount of memory that a PHP script can use during execution. If your WordPress website requires more memory to function efficiently, you should increase the memory limit. In the MultiPHP INI Editor, locate the 'memory_limit' setting and set it to a higher value, such as 512M or 1G, depending on your website's requirements.

4. OPcache

OPcache improves the performance of your PHP applications by optimizing the compilation of PHP scripts. To enable OPcache, navigate to the Software section in your Cpanel and click on the MultiPHP INI Editor icon. Locate the 'opcache.enable' setting and set it to '1'. Additionally, set the 'opcache.reset_timeout' value to a suitable time frame, such as 3600 seconds.

5. Caching

Caching helps improve your website's performance by reducing the number of queries made to the database and minimizing the amount of data that needs to be processed. Cpanel offers various caching options, including Memcached and Redis. Install and configure the caching solution that suits your needs, and adjust the settings accordingly.

6. MySQL Optimization

Optimizing your MySQL database can significantly improve your website's performance. Start by checking your database for any unnecessary data, and remove it if possible. Additionally, upgrade your MySQL version to the latest available, as it often includes performance enhancements. Lastly, consider implementing database caching solutions like Query Cache or MySQL Proxy.

7. Gzip Compression

Gzip compression reduces the size of your website's files, resulting in faster loading times. To enable Gzip compression, navigate to the Software section in your Cpanel and click on the Optimize Website icon. In the Optimize Website page, locate the 'Compression' section and select 'gzip' as the compression method.

8. Leverage Browser Caching

Leveraging browser caching enables your website to store frequently used files in the user's browser cache, reducing the need for repetitive downloads. To enable browser caching, navigate to the Files section in your Cpanel and click on the File Manager icon. Locate your website's .htaccess file and add the following code:



    ExpiresActive On
    ExpiresByType text/css "access plus 1 year"
    ExpiresByType application/javascript "access plus 1 year"
    ExpiresByType image/(gif|jpg|jpeg|png|webp|ico|bmp|tiff|tif) "access plus 1 year"

9. Enable KeepAlive

Enabling KeepAlive allows multiple requests to be sent over a single connection, resulting in improved performance. To enable KeepAlive, locate your website's .htaccess file using the File Manager in your Cpanel and add the following code:



    Header set Connection keep-alive

10. Configure Apache Settings

Configuring Apache settings can significantly impact your website's performance. Start by increasing the value of 'StartServers' and 'MinSpareServers' to ensure that your server can handle a moderate traffic load. Additionally, set the 'MaxSpareServers' value to a lower number to prevent your server from running out of available processes. Lastly, consider implementing Apache caching solutions like mod_cache or mod_cache_disk.

By implementing the above Cpanel settings, you can significantly enhance the performance of your WordPress website. Regularly review and optimize these settings to ensure your website continues to load quickly and efficiently.

Contact Cpluz at info@cpluz.com or visit cpluz.com for professional design and hosting solutions.