The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Best Apache 2.4 config for W3-Total-Cache (Memcache, APC)

Discussion in 'EasyApache' started by October, Dec 19, 2015.

  1. October

    October Registered

    Joined:
    Apr 17, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Most of the sites on my servers run WordPress.

    Generally on all my cPanel servers I run EasyApache with the default config and just a few additional selections.

    It's always been somewhat of a sore spot that using the defaults means the WordPress sites cannot use the W3TC (W3-Total-Cache) plugin. I use WP-SuperCache instead.

    I've looked at the documentation for all this before and frankly its too confusing and frustrating. (side note: I wish all these things were streamlined). Up until now, I've been able to get by without.

    Today I finally had a client with a WP site that really needs to be using W3TC. The first thing W3TC is grumpy about missing is Memcache.

    I'm using CentOS 7, WHM 11.52.1, Apache 2.4, PHP 5.5, EasyApache 3

    When I went to EasyApache 3 to compile MemCache in, it is not one of the options listed (completely missing). I went to look at the docs for MemCache:

    Apache Module: MemCache - EasyApache - cPanel Documentation

    And to me it's pretty clear Memcache does not work with Apache 2.4!

    But there is nothing that clearly indicates what to do instead.

    I've also seen a lot of confusing stuff about APC - some say it's the thing to use, some say it's been replaced, others say the replacement is no good . . . ugh :-(

    (Same for mod_spdy and all that. Why does the world of Apache seems to be slowly getting worse instead of better?)

    I know there are many possibilities and those of you in the know build to taste, I'm sure, but does anyone have a clean recipe for adding a good (if not ideal) combination of things to a modern cPanel / Apache 2.4 / PHP 5.5 system that will permit typical WordPress sites to run happily with W3TC and all the caching it needs?

    All tips or links to good articles welcome.


    - Removed -


    Thank you.
     
    #1 October, Dec 19, 2015
    Last edited by a moderator: Dec 19, 2015
  2. cotswoldphoto

    cotswoldphoto Active Member

    Joined:
    Feb 20, 2015
    Messages:
    25
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Why do they HAVE to use W3TotalCache? Is it is poorly maintained and aimed at PHP5.4 and older. Why not use ZenCache, which is aimed at PHP5.5 and newer? It does not need an opcache or server cache at all. It is designed assuming a pretty much standard WHM stack build. If you have PHP5.5 or newer, ZenCache also supports Zend OpCache. Check out the speed of one of the sites on my server with it on (Ap2.4/PHP5.6/MariaDB10/Zend Opcache):

    - Removed -

    It is a blog about the life of an Autistic person, so if you don't want to read it, please don't.
     
    #2 cotswoldphoto, Dec 20, 2015
    Last edited by a moderator: Dec 22, 2015
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as mentioned, the easier path in your circumstance is to find an alternative to W3TC. Are you able to consult with the individual account holder to determine if alternatives as suggested in the previous post are worth exploring?

    Thank you.
     
Loading...

Share This Page