Programmer's Mindset

APC Configuration Hell

Note to self: Know where your configuration files are.

I have been fighting an APC out of memory/100% fragmentation nightmare.  I kept tweeking settings in /etc/php.ini and nothing seemed to be fixing the problem.  Sure, gracefully restarting Apache will appear to fix the issue at the moment, but then it returned.

I started looking at the Runtime settings in apc.php and realized that nothing I had set really changed anything.  Turns out, apc by default put its config in /etc/php.d/apc.ini.  Sure, I would set them in php.ini and then they were overwritten in apc.ini.  ARGH!!!!

Found and fixed… YAY!

Leave a Reply

Your email address will not be published. Required fields are marked *