I have a Linode 512 with Ubuntu 10.10, Apache, MySQL, PHP with which I have installed php-apc to speed my Zend Framework application up a bit. Every so often, I'm pretty sure it's when I push the latest version of the source code to the server, I start getting APC errors notifying me of class redeclaration...
Code:
[Tue Mar 1 15:18:37 2011] [apc-error] Cannot redeclare class zend_locale_math in /var/www/foo/library/Zend/Locale/Format.php on line 301.
Different parts of the web application break each time this happens, and it can be fixed by removing and re-installing php-apc and the site runs fine again until the next lot of source code is pushed to the server (I think).
Does anyone have any ideas as to what might be happening, and how I could fix this properly?