Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to enable Caching

Discussion in 'EasyApache' started by orrevs, May 17, 2017.

  1. orrevs

    orrevs Registered

    Joined:
    May 9, 2017
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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?
     
  2. Jafar Muhammed

    Jafar Muhammed Active Member

    Joined:
    Mar 21, 2017
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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.
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Jafar Muhammed

    Jafar Muhammed Active Member

    Joined:
    Mar 21, 2017
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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 :)
     
  5. babel13

    babel13 Registered

    Joined:
    Oct 24, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    /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
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice