How to enable Caching
I got a dedicated server that runs allot of sites that get quite some traffic.
I've been trying to get some kind of caching to work.
My last attempt was to use PHP 7.0 and APCu my wordpress plugin say APCu is enabled but when i run tests it's not. Is memcache better suited for me?
My server is a 64gb ram, 2x240gb SSD in RAID0, and 2x2tb as backup.
Ive been looking into Memcaching i saw there was a experimental repo but i'm afraid to use this as the sites are my moneymaking sites.
I run EasyApache 4, is there any good guide how to enable memcache.
Or is it possible to hire someone to help me set this up?
-
@orrevs, try this. In your WHM, go to Software > Module Installers > Manage PHP Pecl. Then search for memcache. There you will get both memcache and memcached. Click on Install. 1 -
Hello, You can find installation instructions for Memcached with EasyApache 4 on the following thread: Installing memcache and memcached with EasyApache4 As you mentioned, it's not yet ready for production systems. You can subscribe to it's corresponding feature request to know when it's released: MemcacheD in EasyApache4 Regarding APC, this is a PECL module, and you can install it using "WHM >> Module Installers". Thank you. 0 -
@orrevs, try this. In your WHM, go to Software > Module Installers > Manage PHP Pecl. Then search for memcache. There you will get both memcache and memcached. Click on Install.
Thank you cPanelMichael, I tried the above steps, and I couldn't get it worked. I thought it is because of either an issue with Magento 2 or because of my PHP version. One more feature added to my watch list now :)0 -
Hello, You can find installation instructions for Memcached with EasyApache 4 on the following thread: Installing memcache and memcached with EasyApache4 As you mentioned, it's not yet ready for production systems. You can subscribe to it's corresponding feature request to know when it's released: MemcacheD in EasyApache4 Regarding APC, this is a PECL module, and you can install it using "WHM >> Module Installers". Thank you.
/root/tmp/pear/APC/apc.c:47:43: fatal error: ext/standard/php_smart_str.h: No such file or directory # include "ext/standard/php_smart_str.h" ^ compilation terminated. make: *** [apc.lo] Error 1 ERROR: `make' failed0 -
/root/tmp/pear/APC/apc.c:47:43: fatal error: ext/standard/php_smart_str.h: No such file or directory # include "ext/standard/php_smart_str.h" ^ compilation terminated. make: *** [apc.lo] Error 1 ERROR: `make' failed
Hello, APC from PECL cannot be installed in PHP 7 because it references php_smart_str.h. In PHP 7, this header file was renamed to php_smart_string.h. Have you considered using Memcache/Memcached from the EA4 experimental repo instead? Thank you.0
Please sign in to leave a comment.
Comments
5 comments