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


Apr 17, 2013
cPanel Access Level
Root Administrator

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.
Last edited by a moderator:


Active Member
Feb 20, 2015
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.
Last edited by a moderator:


Staff member
Apr 11, 2011
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.