In my case (on Ubuntu, a Debian based Linux variant), I had two copies of apc.ini
in /etc/php5/conf.d/
. I had one that I had put there when I first installed apc. I also found a symlink from /etc/php5/conf.d/20-apc.ini
to ../mods-available/apc.ini
.
It appears that some upgrade of php, enabled this module the "Debian way" (with a symlink). I deleted my copy of apc.ini and I am now just using the one that is symlinked to mods-available
.
Digging further, there are command line programs that should be used to enable and disable PHP modules under Ubuntu and Debian. Here are the commands to enable and disable APC:
sudo /usr/sbin/php5enmod apc # Creates the symlink in /etc/php5/conf.d that enables APC
sudo /usr/sbin/php5dismod apc # Deletes the symlink in /etc/php5/conf.d that disables APC