orrevs

Registered
May 9, 2017
4
3
3
Swe
cPanel Access Level
Root Administrator
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
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.
 

Jafar Muhammed

Active Member
Mar 21, 2017
31
3
8
India
cPanel Access Level
Root Administrator
@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 :)
 

babel13

Registered
Oct 24, 2017
3
0
1
Argentina
cPanel Access Level
Root Administrator
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' failed
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
/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.