Joomla Memcached configuration

How to improve the performance of my Joomla website using Memcached?

Jean Taylor Asked on September 26, 2015 in Joomla.
Add Comment
1 Answer(s)
Best answer

In this guide, we are going to go over how you can configure your Joomla application to work with Memcached by using our proprietary Memcached tool which is available in your CPanel.

The first thing that you would need to do is to access your CPanel with us, as the tools that we are going to use are located within, you can do so from your client area with us, by using the buttons which are shown in the following screenshots:

RE: Joomla Memcached configuration RE: Joomla Memcached configuration

If for some reason you are unable to access your CPanel, you can submit a ticket to our Genious Support Team, which is available 24/7.

After you have accessed your CPanel, you need to make sure that the “Memcached” PHP extension has been enabled for your hosting account, you can do so from the “Select PHP version” tool which is located in your CPanel, once in there just make sure that the box next to the aforementioned PHP extension has been ticked.

RE: Joomla Memcached configuration RE: Joomla Memcached configuration

After this has been sorted out you would have to create a Memcached instance by using the “Memcached” tool, once in there you can select the name of your instance its size and whether it uses a socket or TCP/IP connection, for Joomla you would need to select the TCP/IP option, once you have created it please take note of the IP and Port that you will be provided with since we would need them later on.

RE: Joomla Memcached configuration RE: Joomla Memcached configuration RE: Joomla Memcached configuration

Once you have created your Memcached instance you would need to locate the following entries in the configuration.php file of your Joomla installation:

public $caching = ‘0’;
public $cache_handler = ‘file’;

When you have located them you would need to change them to the following, and add two additional lines which will specify the IP and Port that the application should connect to (you would need to use the IP and Port which have been provided by our tool):

public $caching = ‘2’;
public $cache_handler = ‘memcached’;
public $memcache_server_host = ‘The IP which was provided by our tool’;
public $memcache_server_port = ‘The port wich was provided by our tool’;

Once the changes have been successfully made you should be able to see the following in the “Global Configuration” tab of the “System” section:

RE: Joomla Memcached configuration

You can edit the configuration.php file either by downloading the file over FTP and changing it and then re-uploading it, or you can carry out the changes through the “Edit” option which is available in your “File Manager” tool, you can use this by right-clicking on the selected file and choosing the “Edit” option.

Once all of the above-mentioned actions have been taken, your website would be enjoying the benefits of Memcached.

 

Gregory Specter Answered on September 26, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.