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

Did anybody successfully configured mod_cache in apache 2.4 with php-fpm and fastcgi?

my cgi config:

<IfModule mod_fastcgi.c>
        Alias /php5.fastcgi /var/www/fastcgi/php5.fastcgi
        AddHandler php-script .php
        FastCGIExternalServer /var/www/fastcgi/php5.fastcgi -socket /mnt/tmp/fast/php-fpm.sock -idle-timeout 1600 -pass-header Authorization
        Action php-script /php5.fastcgi virtual

My php-fpm config is standard and I am loading mod_cache and mod_disk_cache in Apache.

However the Apache does not seems to cache any content.

The debug log file:

Fri Sep 07 23:22:59.691333 2012] [cache:debug] [pid 35623:tid 123613201929984] mod_cache.c(161): [client] AH00750: Adding CACHE_SAVE filter for /index.html
[Fri Sep 07 23:22:59.691345 2012] [cache:debug] [pid 35623:tid 123613201929984] mod_cache.c(171): [client] AH00751: Adding CACHE_REMOVE_URL filter for /index.html
[Fri Sep 07 23:23:01.326598 2012] [cache:debug] [pid 35623:tid 123613185144576] cache_storage.c(626): [client] AH00698: cache: Key for entity /index.html?(null) is ``
share|improve this question
We are having the same issue. We tested the exact same setup on mod_php and it works, so we've successfully isolated the bug to a mod_cache + mod_fastcgi thing. We know it's not caused by headers, etc. – apinstein Oct 11 '12 at 15:30

Your Answer


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

Browse other questions tagged or ask your own question.