Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed php-pecl-apcu:

# yum info php-pecl-apcu
Loaded plugins: amazon-id, priorities, rhui-lb
4 packages excluded due to repository priority protections
Installed Packages
Name        : php-pecl-apcu
Arch        : x86_64
Version     : 4.0.4
Release     : 1.el7
Size        : 138 k
Repo        : installed
From repo   : epel
Summary     : APC User Cache
URL         :
License     : PHP
Description : APCu is userland caching: APC stripped of opcode caching in preparation
            : for the deployment of Zend OPcache as the primary solution to opcode
            : caching in future versions of PHP.
            : APCu has a revised and simplified codebase, by the time the PECL release
            : is available, every part of APCu being used will have received review and
            : where necessary or appropriate, changes.
            : Simplifying and documenting the API of APCu completely removes the barrier
            : to maintenance and development of APCu in the future, and additionally allows
            : us to make optimizations not possible previously because of APC's inherent
            : complexity.
            : APCu only supports userland caching (and dumping) of variables, providing an
            : upgrade path for the future. When O+ takes over, many will be tempted to use
            : 3rd party solutions to userland caching, possibly even distributed solutions;
            : this would be a grave error. The tried and tested APC codebase provides far
            : superior support for local storage of PHP variables.


While using apc.php (to see stats), I'm not seeing any HIT and / or MISS(.

This is what in my /etc/php.d/apcu.ini:

extension =

I can't figure out what am I missing, any ideas?

share|improve this question
what is your SAPI? – ADM Jun 24 '14 at 19:40
@ADM Can you rephrase your question please? What exactly are you trying to figure out? – alexus Jun 24 '14 at 19:45
are you running php in FCGI, FPM , Apache module etc, is there any errors when you restart php/apache – ADM Jun 24 '14 at 20:10
@ADM I'm running as apache's module (DSO), I'm not seeing any errors at all. – alexus Jun 24 '14 at 20:17

I have run into the same issue and I suspect the answer lies in the package description: APCu is userland caching: APC stripped of opcode caching

That is, APCu is not functionally equivalent to APC, and will not be used if your application isn't explicitly calling it to store its own data. What would usually fill the APC cache automatically would be compiled php code, which is now handled by opcache.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.