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.
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.
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.
Do not leave a public phpinfo() page online. Consider updating the application’s cache driver instead of downgrading PHP to support an obsolete backend.
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.