Hosting servers

Dedicated Hosting servers – servers optimized for virtualization, multi-site hosting and consolidated infrastructures.

Saturday, April 28, 2018

TURN ON APC, MEMCACHED ON SHARED HOST WITH CPANEL

So far, when we mention advanced forms of cache, we will know about some famous cache systems like APC, Memcached, XCache, etc ... but most of them are only usable. If you use a separate server because it is not usually installed on Shared Hosts because of limited resources.

However, the good news is that in the new versions of cPanel, we can change the PHP version from 5.3 to 5.6 and customize the module we want to use, including enabling APC, Memcached, cURL, Ioncube modules. Loader, ... In this article, I will introduce you through the PHP version and customize the cache system if you want to experience the system. But you should also note that not all hosts that are using cPanel can also be turned on, depending on whether or not your provider has enabled this feature or is using the latest version of cPanel. cPanel or not, so if you do not see it, do not be surprised. I have tested on some packages and found that there are currently StableHost and 247-Host (I have been using 6 months, wait a few months to review) is the best operation, while A2Hosting and InmotionHosting also do not have this feature. . How to enable APC and Memcached modules on cPanel First you need to log into cPanel, of course, then drag down to the Software / Service section and navigate to the Select PHP Version. Next, select the version of PHP 5.4 or higher because PHP 5.4 can use Opcache. Press the Set as current button. In the module below, you mark the module that you need to use, if you want to use APC Opcode Cache then mark apc, if you want to use Memcached then mark memcache and memcached, but I recommend to use APC in the shared host because Memcached themselves feel slower. You should only choose one, do not use both to avoid overloading RAM, select the module then click the Save button below. Enable Opcode Cache for WordPress To use the Opcode Cache that you have enabled on the host to the WordPress site, you have two options:  Use W3 Total Cache.  Use the EM Object Cache plugin. You should not use W3 Total Cache with EM Object Cache, which selects the EM Object Cache only for those who have used other cache plugins but do not support the Opcode Cache. And now, the plugins that support Opcode Cache have allowed you to use Recommendation When changing the PHP version, I'm not sure if your site has an error or not because the theme / plugin you are using is something that is not compatible with the new version of PHP should be error, so If you get an error, you can view the error_log file or open the wp-config.php file, find the WP_DEBUG section and change the value to true for the error. Or maybe you can go back to the old version. As with the use of APC, Memcached does not have to do with any good website so this article is only for reference and a barrier for those who do not know what opcode cache, but I dare not say is used officially, because Shared hosts are limited resources that use opcode cache is quite expensive RAM may not be very beneficial.

No comments:

Post a Comment