X
X
Worldwide (English) USD 0

Welcome

Sign in

PHP Caching in cPanel: APC, APCu and OPcache Explained

HomepageArticlesPHP Caching in cPanel: APC, APCu and OPcache E...
Server hardware and hosting dashboard
Illustrative image · HostTurka

Originally published: 2016-10-03

Technical update: 22 October 2026. The archived example compiling APC 3.1.8 for PHP has been removed. “The apc extension must be loaded” can indicate that an application’s selected cache backend is unavailable; the right fix depends on the application and PHP versions.

APC, APCu and OPcache

OPcache stores compiled PHP bytecode in memory to reduce repeated compilation. APCu is a separate extension for application user-data caching. It does not guarantee unchanged compatibility with every application written for old APC APIs. Distinguish opcode caching from application-data caching.

Identify the active runtime

Check the domain’s PHP version and handler in the panel. The server’s php -v output may not represent the website runtime. Keep cPanel EA-PHP and CloudLinux Alt-PHP packages and configuration paths separate.

A controlled procedure

  1. Verify the application’s supported PHP and cache options.
  2. Install the required extension from a supported package for the correct PHP version.
  3. Check active INI files and extension availability in the web runtime.
  4. Reload only the relevant service or handler, then test application and cache behaviour.

Do not leave a public phpinfo() page online. Consider updating the application’s cache driver instead of downgrading PHP to support an obsolete backend.

Hosting requirements

Confirm extension availability and resources for WordPress hosting. Consider a cloud server for custom system-level configuration. Enabling a cache technology does not guarantee a measurable speed improvement for every application.

ABOUT THE AUTHOR

Computer Programmer | Hostturka

A 2009 Kadir Has University graduate and owner of CND Medya, working in hosting, server administration, networking and web software.

Education, projects and professional background →

Copyright © 2026 All Rights Reserved
Top