How To Configure Content Caching Using Apache Modules

  • Posted on November 12, 2014
  • tokar93Asked by tokar93


I have follow this guide but i end up whit:

sudo a2enmod disk_cache
ERROR: Module disk_cache does not exist!

sudo a2enmod mem_cache
ERROR: Module mem_cache does not exist!

How can i install this modules?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


That tutorial was written for Ubuntu 12.04. What OS are you running? There have been some changes in more recent versions of Apache. As of Ubuntu 14.04 disk_cache.conf is now cache_disk:

sudo a2enmod cache_disk

According to the official Apache upgrading guide, mod_mem_cache was removed from Apache 2.4:

These modules have been removed: mod_authn_default, mod_authz_default, mod_mem_cache. If you were using mod_mem_cache in 2.2, look at mod_cache_disk in 2.4.